From e17977c92825d0bd7152d29f7aca96c66c795783 Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Mon, 24 Feb 2020 12:12:59 -0800 Subject: [PATCH] changing the connection type from IPC to be based on the process's commandline arguments so that the benchmark tool can set stdin/stdout (#541) --- server/src/languageServerBase.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/languageServerBase.ts b/server/src/languageServerBase.ts index d26502d09..f3371ec6c 100644 --- a/server/src/languageServerBase.ts +++ b/server/src/languageServerBase.ts @@ -10,8 +10,8 @@ import { CodeAction, CodeActionKind, CodeActionParams, Command, ConfigurationItem, createConnection, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentSymbol, ExecuteCommandParams, IConnection, - InitializeResult, IPCMessageReader, IPCMessageWriter, Location, MarkupKind, - ParameterInformation, RemoteConsole, RemoteWindow, SignatureInformation, SymbolInformation, TextDocuments, TextEdit, WorkspaceEdit + InitializeResult, Location, MarkupKind, ParameterInformation, RemoteConsole, RemoteWindow, SignatureInformation, + SymbolInformation, TextDocuments, TextEdit, WorkspaceEdit } from 'vscode-languageserver'; import { ImportResolver } from './analyzer/importResolver'; @@ -61,8 +61,8 @@ export interface LanguageServerInterface { } export abstract class LanguageServerBase implements LanguageServerInterface { - // Create a connection for the server. The connection uses Node's IPC as a transport - private _connection: IConnection = createConnection(new IPCMessageReader(process), new IPCMessageWriter(process)); + // Create a connection for the server. The connection type can be changed by the process's arguments + private _connection: IConnection = createConnection(); private _workspaceMap: WorkspaceMap; // Create a simple text document manager. The text document manager