From 9802f13beb04568e4a44c38dbb27e171543cdffc Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Sun, 10 May 2020 14:25:11 +0100 Subject: [PATCH] Respect user choice when dismissing the powerShellExePath dialog --- src/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.ts b/src/session.ts index a65484ecc1..512669ab05 100644 --- a/src/session.ts +++ b/src/session.ts @@ -329,7 +329,7 @@ export class SessionManager implements Middleware { const choice = await vscode.window.showWarningMessage(warningMessage, "Let's do it!"); - if (choice === "") { + if (choice === undefined) { // They hit the 'x' to close the dialog. return; }