Add confirmation dialog to Delete All History (#3316)

* delete all confirmation dialog

* changeset

* Use showWarningMessage instead

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>

---------

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Frostbourneandellipsis-dev[bot] authored and GitHub committed 2025-05-05 14:55:18 -07:00
1 parent 8516aabb88
commit a953f6e768
2 files changed
+15 -3

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Add confirmation dialog to Delete All History button
+10 -3
View File
@@ -632,9 +632,16 @@ export class Controller {
break
}
case "clearAllTaskHistory": {
await this.deleteAllTaskHistory()
await this.postStateToWebview()
this.refreshTotalTasksSize()
const answer = await vscode.window.showWarningMessage(
"Are you sure you want to delete all history?",
"Delete",
"Cancel",
)
if (answer === "Delete") {
await this.deleteAllTaskHistory()
await this.postStateToWebview()
this.refreshTotalTasksSize()
}
this.postMessageToWebview({ type: "relinquishControl" })
break
}