Skip to content

Commit a6ed674

Browse files
aeisenbergjcreedcmu
andcommitted
Compare against title property
Co-authored-by: jcreedcmu <jcreed@gmail.com>
1 parent 3c6169f commit a6ed674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export async function showBinaryChoiceDialog(message: string): Promise<boolean>
118118
const yesItem = { title: 'Yes', isCloseAffordance: false };
119119
const noItem = { title: 'No', isCloseAffordance: true };
120120
const chosenItem = await Window.showInformationMessage(message, { modal: true }, yesItem, noItem);
121-
return chosenItem?.title === 'Yes';
121+
return chosenItem?.title === yesItem.title;
122122
}
123123

124124
/**

0 commit comments

Comments
 (0)