Skip to content

Commit c946927

Browse files
committed
Fix the "logtalk.executable.arguments" setting being ignored on Windows when the "logtalk.executable.path" setting is set to the empty string (its default value)
1 parent ba84770 commit c946927

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.81.0]
4+
5+
* Fix the "logtalk.executable.arguments" setting being ignored on Windows when the "logtalk.executable.path" setting is set to the empty string (its default value)
6+
37
## [0.80.0]
48

59
* Add support for the ECLiPSe backend on Windows

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "logtalk-for-vscode",
33
"displayName": "Logtalk for VSCode",
44
"description": "Logtalk programming support",
5-
"version": "0.80.0",
5+
"version": "0.81.0",
66
"publisher": "LogtalkDotOrg",
77
"icon": "images/logtalk.png",
88
"license": "MIT",
@@ -1327,7 +1327,7 @@
13271327
"compile": "tsc -watch -p ./",
13281328
"test": "tsc ./tests/runTest.ts",
13291329
"vsix:make": "vsce package --baseImagesUrl https://raw.githubusercontent.com/llvm/llvm-project/master/clang-tools-extra/clangd/clients/clangd-vscode/",
1330-
"vsix:install": "code --install-extension logtalk-for-vscode-0.80.0.vsix"
1330+
"vsix:install": "code --install-extension logtalk-for-vscode-0.81.0.vsix"
13311331
},
13321332
"devDependencies": {
13331333
"@types/bluebird": "^3.5.38",

src/features/terminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export default class LogtalkTerminal {
387387
}
388388
if (process.platform === 'win32') {
389389
executable = LogtalkTerminal.expandEnvironmentVariables("${env:ProgramFiles}/PowerShell/7/pwsh.exe");
390-
args = ["-file", LogtalkTerminal.expandEnvironmentVariables("${env:SystemRoot}/" + script + ".ps1")]
390+
args = ["-file", LogtalkTerminal.expandEnvironmentVariables("${env:SystemRoot}/" + script + ".ps1")].concat(args);
391391
} else {
392392
executable = path.join(logtalkHome, path.join("integration", script + ".sh"));
393393
executable = path.resolve(executable).split(path.sep).join("/");

src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class Utils {
139139
}
140140
if (process.platform === 'win32') {
141141
Utils.RUNTIMEPATH = path.join(process.env.PROGRAMFILES, "/PowerShell/7/pwsh.exe");
142-
Utils.RUNTIMEARGS = ["-file", path.join(process.env.SystemRoot, Utils.script + ".ps1")];
142+
Utils.RUNTIMEARGS = ["-file", path.join(process.env.SystemRoot, Utils.script + ".ps1")].concat(Utils.RUNTIMEARGS);
143143
} else {
144144
Utils.RUNTIMEPATH = path.join(Utils.logtalkHome, path.join("integration", Utils.script + ".sh"));
145145
Utils.RUNTIMEPATH = path.resolve(Utils.RUNTIMEPATH).split(path.sep).join("/");

0 commit comments

Comments
 (0)