Skip to content

Commit 40a8fdd

Browse files
author
Kapil Borle
committed
Move confirmation to the top of the checkbox quick pick menu
1 parent 561fd68 commit 40a8fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/checkboxQuickPick.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class CheckboxQuickPick {
2222
this.confirm = "$(check)";
2323
this.checkboxOn = "[ x ]";
2424
this.checkboxOff = "[ ]";
25-
this.confirmPlaceHolder = "Select 'Confirm' to confirm";
25+
this.confirmPlaceHolder = "Select 'Confirm' to confirm change; Press 'esc' key to cancel changes";
2626
}
2727

2828
public show(callback: (options: CheckboxQuickPickItem[]) => void): void {
@@ -58,11 +58,11 @@ export class CheckboxQuickPick {
5858

5959
private getQuickPickItems(tempOptions: CheckboxQuickPickItem[]): QuickPickItem[] {
6060
let quickPickItems: QuickPickItem[] = [];
61+
quickPickItems.push({ label: this.confirm, description: "Confirm" });
6162
tempOptions.forEach(option =>
6263
quickPickItems.push({
6364
label: this.convertToCheckBox(option.isSelected), description: option.name
6465
}));
65-
quickPickItems.push({ label: this.confirm, description: "Confirm" });
6666
return quickPickItems;
6767
}
6868

0 commit comments

Comments
 (0)