Skip to content

Commit 2fc6d1f

Browse files
author
Kapil Borle
committed
Handle cancelling PSSA rule selection
1 parent 1a1b6e0 commit 2fc6d1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/features/SelectPSSARules.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export class SelectPSSARulesFeature implements IFeature {
4747
});
4848

4949
showCheckboxQuickPick(options)
50-
.then(updatedOptions => {
50+
.then((updatedOptions: CheckboxQuickPickItem[]) => {
51+
if (updatedOptions === undefined) {
52+
return;
53+
}
5154
let filepath: string = vscode.window.activeTextEditor.document.uri.fsPath;
5255
let ruleInfos: RuleInfo[] = updatedOptions.map(
5356
function (option: CheckboxQuickPickItem): RuleInfo {

0 commit comments

Comments
 (0)