Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 79ac1a5

Browse files
authored
Removed unnecessary use of node to run a bash script (#703)
1 parent 1f634de commit 79ac1a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vscode/src/devtoolsserver.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ export class DeveloperToolsManager extends JDEventSource {
927927
"devicescript.jacdac"
928928
)
929929
const isWindows = globalThis.process?.platform === "win32"
930+
const isLinux = globalThis.process?.platform === "linux"
930931
const useShell =
931932
this.lastCreateCliFailed ||
932933
(options.useShell ?? !!devToolsConfig.get("shell"))
@@ -939,6 +940,9 @@ export class DeveloperToolsManager extends JDEventSource {
939940
const internet =
940941
options.internet || !!devToolsConfig.get("internet")
941942
let cli = nodePath || "node"
943+
if(isLinux) {
944+
cli = "";
945+
}
942946
if (isWindows) {
943947
cli = "node_modules\\.bin\\devicescript.cmd"
944948
} else args.unshift("./node_modules/.bin/devicescript")

0 commit comments

Comments
 (0)