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; }