Skip to content

Commit

Permalink
fix: πŸ› Attemp to fix wsl error
Browse files Browse the repository at this point in the history
βœ… Closes: #351 #352
  • Loading branch information
danielpinto8zz6 committed Feb 4, 2024
1 parent 9b3507f commit b04e499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/common-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function isProccessRunning(proccess: string): Promise<boolean> {
}

// Temporary workaround for wsl
if (isWsl) {
if (Boolean(isWsl) === true) {
return false;
}

Expand Down

0 comments on commit b04e499

Please sign in to comment.