Skip to content

Commit

Permalink
Enable String as Input for Port Config (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
a0n authored Sep 24, 2022
1 parent 90def7c commit 88f5e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88f5e6d

Please sign in to comment.