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 <[email protected]>
  • Loading branch information
AlexandraBuzila committed Feb 9, 2024
1 parent 9530193 commit db5f7e0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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,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);

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit db5f7e0

Please sign in to comment.