From b8f261beee9fe0333ef33f7399e1a569c616dbbc Mon Sep 17 00:00:00 2001 From: Thad House Date: Sun, 10 Dec 2023 17:45:01 -0800 Subject: [PATCH] Fix global project options not showing --- vscode-wpilib/src/vscommands.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/vscode-wpilib/src/vscommands.ts b/vscode-wpilib/src/vscommands.ts index bbaf0ee3..552e220d 100644 --- a/vscode-wpilib/src/vscommands.ts +++ b/vscode-wpilib/src/vscommands.ts @@ -19,24 +19,25 @@ interface IUpdatePair { class UpdatePair implements IUpdatePair, vscode.MessageItem { public title: string; - public isCloseAffordance: boolean = true; + public isCloseAffordance: boolean; public yes: boolean; public global: boolean; - public constructor(title: string, yes: boolean, global: boolean) { + public constructor(title: string, yes: boolean, global: boolean, close: boolean) { this.title = title; this.yes = yes; this.global = global; + this.isCloseAffordance = close; } } async function globalProjectSettingUpdate(message: string): Promise { const opts: UpdatePair[] = [ - new UpdatePair(i18n('ui', 'Yes (Project)'), true, false), - new UpdatePair(i18n('ui', 'Yes (Global)'), true, true), - new UpdatePair(i18n('ui', 'No (Project)'), false, false), - new UpdatePair(i18n('ui', 'No (Global)'), false, true), - new UpdatePair(i18n('ui', 'Cancel'), false, false), + new UpdatePair(i18n('ui', 'Yes (Project)'), true, false, false), + new UpdatePair(i18n('ui', 'Yes (Global)'), true, true, false), + new UpdatePair(i18n('ui', 'No (Project)'), false, false, false), + new UpdatePair(i18n('ui', 'No (Global)'), false, true, false), + new UpdatePair(i18n('ui', 'Cancel'), false, false, true), ]; const result = await vscode.window.showInformationMessage(message, {modal: true}, ...opts);