Skip to content

Commit 1b9649f

Browse files
authored
Merge pull request #19 from myoung3/parse_fix
fix(server): Correctly handle shell commands for LSP servers
2 parents 4ff3c79 + 0b0535c commit 1b9649f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export function start(opts: LSPXOptions): Operation<RPCEndpoint> {
2121
let agents: LSPAgent[] = [];
2222

2323
for (let command of opts.commands) {
24-
let [exe, ...args] = command.split(/\s/g);
25-
let process = yield* useDaemon(exe, {
26-
args,
24+
let [exe] = command.split(/\s/g);
25+
let process = yield* useDaemon("/bin/sh", {
26+
args: ["-c", command],
2727
stdin: "piped",
2828
stdout: "piped",
2929
stderr: "piped",

0 commit comments

Comments
 (0)