From db5f7e0b785821a247e168b46817dcc00cfed977 Mon Sep 17 00:00:00 2001 From: Alexandra Buzila Date: Wed, 7 Feb 2024 17:56:56 +0100 Subject: [PATCH] fix: configure tasks from open task quick pick The gear icon in the task quick pick should open the task configuration. Fixes #13086 Contributed on behalf of STMicroelectronics Signed-off-by: Alexandra Buzila --- packages/task/src/browser/quick-open-task.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/task/src/browser/quick-open-task.ts b/packages/task/src/browser/quick-open-task.ts index a16e00dead071..38f4ff5954ed6 100644 --- a/packages/task/src/browser/quick-open-task.ts +++ b/packages/task/src/browser/quick-open-task.ts @@ -182,6 +182,11 @@ export class QuickOpenTask implements QuickAccessProvider { picker.matchOnDescription = true; picker.ignoreFocusOut = false; picker.items = this.items; + picker.onDidTriggerItemButton(({ item }) => { + if (QuickPickItem.is(item)) { + this.onDidTriggerGearIcon(item); + } + }); const firstLevelTask = await this.doPickerFirstLevel(picker); @@ -225,7 +230,10 @@ export class QuickOpenTask implements QuickAccessProvider { execute: () => this.showMultiLevelQuickPick(true) })); - this.quickInputService?.showQuickPick(providedTasksItems, { placeholder: CHOOSE_TASK }); + this.quickInputService?.showQuickPick(providedTasksItems, { + placeholder: CHOOSE_TASK, + onDidTriggerItemButton: ({ item }) => this.onDidTriggerGearIcon(item) + }); } attach(): void {