Compare commits

...

3 Commits

Author SHA1 Message Date
Geequlim
2a467ed990 Release version 1.0.1 2020-01-30 00:12:21 +08:00
Geequlim
60937ad776 Fix run editor error on windows with default terminal configurations 2020-01-30 00:11:23 +08:00
Geequlim
0ac1299f47 Release 1.0.0 2020-01-29 20:44:33 +08:00
3 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
# Change Log
### 1.0.1
* Fix run editor error on windows with default terminal configurations
### 1.0.0
* Refactor the whole plugin with gdscript language server support
* Add webview renderer to show documentations of native symbols.

View File

@@ -2,7 +2,7 @@
"name": "godot-tools",
"displayName": "godot-tools",
"icon": "icon.png",
"version": "1.0.0",
"version": "1.0.1",
"description": "Tools for game development with godot game engine",
"repository": "https://github.com/godotengine/godot-vscode-plugin",
"author": "The Godot Engine community",
@@ -106,7 +106,7 @@
"@types/ws": "^6.0.1",
"tslint": "^5.16.0",
"typescript": "^3.5.1",
"@types/vscode": "^1.40.0"
"@types/vscode": "^1.33.0"
},
"dependencies": {
"global": "^4.4.0",

View File

@@ -68,10 +68,13 @@ export class GodotTools {
const run_godot = (path: string, params: string) => {
const escape_command = (cmd: string) => {
let cmdEsc = `"${cmd}"`;
const shell_plugin = vscode.workspace.getConfiguration("terminal.integrated.shell");
let shell = shell_plugin ? shell_plugin.get("windows", "") || "" : "";
if (process.platform === "win32" && shell.endsWith("powershell.exe")) {
cmdEsc = `&${cmdEsc}`;
if (process.platform === "win32") {
const POWERSHELL = "powershell.exe";
const shell_plugin = vscode.workspace.getConfiguration("terminal.integrated.shell");
let shell = (shell_plugin ? shell_plugin.get("windows", POWERSHELL) : POWERSHELL) || POWERSHELL;
if (shell.endsWith(POWERSHELL)) {
cmdEsc = `&${cmdEsc}`;
}
}
return cmdEsc;
};