From b04e499b715f3bd209cd65397fc36598498308aa Mon Sep 17 00:00:00 2001 From: danielpinto8zz6 Date: Sun, 4 Feb 2024 13:18:49 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Attemp=20to=20fix=20wsl?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: #351 #352 --- src/runner.ts | 2 +- src/utils/common-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.ts b/src/runner.ts index 605d7c6..6441db3 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -42,7 +42,7 @@ export class Runner { const runCommand = this.getRunCommand(parsedExecutable, args, customPrefix, shell); - if (shouldRunInExternalTerminal === true && isWsl){ + if (shouldRunInExternalTerminal === true && Boolean(isWsl) === true){ Notification.showWarningMessage("Wsl detected, running in vscode terminal!"); shouldRunInExternalTerminal = false; diff --git a/src/utils/common-utils.ts b/src/utils/common-utils.ts index 76931d7..fd244cc 100644 --- a/src/utils/common-utils.ts +++ b/src/utils/common-utils.ts @@ -15,7 +15,7 @@ export async function isProccessRunning(proccess: string): Promise { } // Temporary workaround for wsl - if (isWsl) { + if (Boolean(isWsl) === true) { return false; }