Add task history

This commit is contained in:
Saoud Rizwan
2024-08-17 08:29:30 -04:00
parent 38f98951d0
commit d1437e6d2d
18 changed files with 1211 additions and 137 deletions

View File

@@ -49,7 +49,7 @@ export function activate(context: vscode.ExtensionContext) {
outputChannel.appendLine("Plus button tapped")
await sidebarProvider.clearTask()
await sidebarProvider.postStateToWebview()
await sidebarProvider.postMessageToWebview({ type: "action", action: "plusButtonTapped" })
await sidebarProvider.postMessageToWebview({ type: "action", action: "chatButtonTapped" })
})
)
@@ -87,6 +87,12 @@ export function activate(context: vscode.ExtensionContext) {
})
)
context.subscriptions.push(
vscode.commands.registerCommand("claude-dev.historyButtonTapped", () => {
sidebarProvider.postMessageToWebview({ type: "action", action: "historyButtonTapped" })
})
)
/*
We use the text document content provider API to show a diff view for new files/edits by creating a virtual document for the new content.