mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
Merge pull request #138 from sevkin/137
check before calling platform-specific code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user