From c41bd642f0857f9b1f460295b99a87e8bab173b8 Mon Sep 17 00:00:00 2001 From: Vsevolod Balashov Date: Sun, 26 Jan 2020 02:29:34 +0300 Subject: [PATCH] check before calling platform-specific code closes #137 --- src/godot-tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/godot-tools.ts b/src/godot-tools.ts index 6cd6283..5857103 100644 --- a/src/godot-tools.ts +++ b/src/godot-tools.ts @@ -70,7 +70,7 @@ export class GodotTools { let cmdEsc = `"${cmd}"`; const shell_plugin = vscode.workspace.getConfiguration("terminal.integrated.shell"); let shell = shell_plugin ? shell_plugin.get("windows", "") || "" : ""; - if (shell.endsWith("powershell.exe") && process.platform === "win32") { + if (process.platform === "win32" && shell.endsWith("powershell.exe")) { cmdEsc = `&${cmdEsc}`; } return cmdEsc;