Skip to content

Commit c59f3eb

Browse files
authored
Respect user choice when dismissing the powerShellExePath dialog (#2688)
1 parent caf2135 commit c59f3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export class SessionManager implements Middleware {
326326

327327
const choice = await vscode.window.showWarningMessage(warningMessage, "Let's do it!");
328328

329-
if (choice === "") {
329+
if (choice === undefined) {
330330
// They hit the 'x' to close the dialog.
331331
return;
332332
}

0 commit comments

Comments
 (0)