Skip to content

Commit 63f8182

Browse files
committed
Merge pull request #164
2 parents a2b912d + a53896a commit 63f8182

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/languageSetup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ function createLanguageClient(options: {
222222
command: options.startScriptPath,
223223
args: [],
224224
options: {
225+
shell: true,
225226
cwd: vscode.workspace.workspaceFolders?.[0]?.uri?.fsPath,
226227
env: options.env
227228
} // TODO: Support multi-root workspaces (and improve support for when no available is available)
@@ -247,7 +248,7 @@ export function spawnLanguageServerProcessAndConnectViaTcp(options: {
247248
// Wait for the first client to connect
248249
server.listen(options.tcpPort, () => {
249250
const tcpPort = (server.address() as net.AddressInfo).port.toString();
250-
const proc = child_process.spawn(options.startScriptPath, ["--tcpClientPort", tcpPort]);
251+
const proc = child_process.spawn(options.startScriptPath, ["--tcpClientPort", tcpPort], { shell: true });
251252
LOG.info("Creating client at {} via TCP port {}", options.startScriptPath, tcpPort);
252253

253254
const outputCallback = data => options.outputChannel.append(`${data}`);

0 commit comments

Comments
 (0)