Skip to content

Commit 3d2d329

Browse files
committed
fix: do not depend on node
1 parent 82f5d76 commit 3d2d329

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/shared/lsp/utils/platform.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,11 @@ export function createServerOptions({
9595
warnThresholds?: { cpu?: number; memory?: number }
9696
}) {
9797
return async () => {
98-
const bin = executable[0]
9998
const args = [...executable.slice(1), serverModule, ...execArgv]
10099
if (isDebugInstance()) {
101100
args.unshift('--inspect=6080')
102101
}
103-
const lspProcess = new ChildProcess(bin, args, { warnThresholds })
102+
const lspProcess = new ChildProcess(process.execPath, args, { warnThresholds })
104103

105104
// this is a long running process, awaiting it will never resolve
106105
void lspProcess.run()

0 commit comments

Comments
 (0)