We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fa3343 commit 98c6f67Copy full SHA for 98c6f67
src/core/webview/ClineProvider.ts
@@ -977,9 +977,20 @@ export class ClineProvider implements vscode.WebviewViewProvider {
977
case "deleteMultipleTasksWithIds": {
978
const ids = message.ids
979
if (Array.isArray(ids)) {
980
- for (const id of ids) {
981
- await this.deleteTaskWithId(id)
982
- }
+ const deletePromises = ids.map(async (id) => {
+ try {
+ await this.deleteTaskWithId(id)
983
+ return { id, success: true }
984
+ } catch (error) {
985
+ this.outputChannel.appendLine(
986
+ `Failed to delete task ${id}: ${error instanceof Error ? error.message : String(error)}`,
987
+ )
988
+ return { id, success: false }
989
+ }
990
+ })
991
+
992
+ await Promise.all(deletePromises)
993
+ await this.postStateToWebview()
994
}
995
break
996
0 commit comments