From 2034a519f44039ba48283de5f4e908b203f8e7ec Mon Sep 17 00:00:00 2001 From: Aaron Israel Date: Tue, 13 Sep 2022 18:12:13 +0200 Subject: [PATCH] Enable String as Input for Port Config --- src/language-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language-client.ts b/src/language-client.ts index 7034ef9..b6e1741 100644 --- a/src/language-client.ts +++ b/src/language-client.ts @@ -102,7 +102,7 @@ export function makeLanguageClient(configuration: solargraph.Configuration): Lan } else { return () => { return new Promise((resolve) => { - let socket: net.Socket = net.createConnection({ host: vscode.workspace.getConfiguration('solargraph').externalServer.host, port: vscode.workspace.getConfiguration('solargraph').externalServer.port }); + let socket: net.Socket = net.createConnection({ host: vscode.workspace.getConfiguration('solargraph').externalServer.host, port: parseInt(vscode.workspace.getConfiguration('solargraph').externalServer.port) }); resolve({ reader: socket, writer: socket