Skip to content

Commit

Permalink
fix(client): shell=true on windows (#5225)
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward authored Dec 18, 2024
1 parent dce5ae5 commit a6e54ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/language-client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export class LanguageClient extends BaseLanguageClient {
let options = Object.assign({}, command.options)
options.env = options.env ? Object.assign({}, process.env, options.env) : process.env
options.cwd = options.cwd || serverWorkingDir
options.shell = process.platform === 'win32' || !!options.shell
let cmd = workspace.expand(json.command)
let serverProcess = child_process.spawn(cmd, args, options)
serverProcess.on('error', e => {
Expand Down

0 comments on commit a6e54ae

Please sign in to comment.