Skip to content

Commit 644ca01

Browse files
committed
Remove TransportKind from server arguments
VSCode LanguageClient 8.1.0 adds cli parameters if the TransportKind is given. However, we do not want any extra cli parameters at the moment.
1 parent 55f08a6 commit 644ca01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/extension.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
Logger,
1818
RevealOutputChannelOn,
1919
ServerOptions,
20-
TransportKind,
2120
} from 'vscode-languageclient/node';
2221
import { RestartServerCommandName, StartServerCommandName, StopServerCommandName } from './commands/constants';
2322
import * as DocsBrowser from './docsBrowser';
@@ -236,8 +235,8 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
236235
// For our intents and purposes, the server should be launched the same way in
237236
// both debug and run mode.
238237
const serverOptions: ServerOptions = {
239-
run: { command: serverExecutable, transport: TransportKind.stdio, args, options: exeOptions },
240-
debug: { command: serverExecutable, transport: TransportKind.stdio, args, options: exeOptions },
238+
run: { command: serverExecutable, args, options: exeOptions },
239+
debug: { command: serverExecutable, args, options: exeOptions },
241240
};
242241

243242
logger.info(`run command: ${serverExecutable} ${args.join(' ')}`);

0 commit comments

Comments
 (0)