Skip to content

Commit

Permalink
fix: configure tasks from open task quick pick
Browse files Browse the repository at this point in the history
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 <abuzila@eclipsesource.com>
  • Loading branch information
AlexandraBuzila committed Feb 7, 2024
1 parent 9530193 commit ffa8af6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/task/src/browser/quick-open-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export class QuickOpenTask implements QuickAccessProvider {
picker.matchOnDescription = true;
picker.ignoreFocusOut = false;
picker.items = this.items;
picker.onDidTriggerItemButton(({ item }) => this.onDidTriggerGearIcon(item as QuickPickItem));

const firstLevelTask = await this.doPickerFirstLevel(picker);

Expand Down Expand Up @@ -225,7 +226,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 {
Expand Down

0 comments on commit ffa8af6

Please sign in to comment.