aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/client.ts
diff options
context:
space:
mode:
authorTim <[email protected]>2020-03-31 10:23:18 +0100
committerTim Hutt <[email protected]>2020-03-31 10:24:01 +0100
commit3eb45b99223ae6a708d82c52d656c697bc993c3b (patch)
tree4dfb02c7d39debea0486f96a0fdccb3a288b70b3 /editors/code/src/client.ts
parent9ef1e9efc6039c9299cbb866118ff92cb4467202 (diff)
Pass string instread of WorkspaceFolder
Diffstat (limited to 'editors/code/src/client.ts')
-rw-r--r--editors/code/src/client.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 0de45bb30..f909f8db2 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -30,14 +30,14 @@ export function configToServerOptions(config: Config) {
30 }; 30 };
31} 31}
32 32
33export async function createClient(config: Config, serverPath: string, workspaceFolder: vscode.WorkspaceFolder): Promise<lc.LanguageClient> { 33export async function createClient(config: Config, serverPath: string, cwd: string): Promise<lc.LanguageClient> {
34 // '.' Is the fallback if no folder is open 34 // '.' Is the fallback if no folder is open
35 // TODO?: Workspace folders support Uri's (eg: file://test.txt). 35 // TODO?: Workspace folders support Uri's (eg: file://test.txt).
36 // It might be a good idea to test if the uri points to a file. 36 // It might be a good idea to test if the uri points to a file.
37 37
38 const run: lc.Executable = { 38 const run: lc.Executable = {
39 command: serverPath, 39 command: serverPath,
40 options: { cwd: workspaceFolder.uri.fsPath }, 40 options: { cwd },
41 }; 41 };
42 const serverOptions: lc.ServerOptions = { 42 const serverOptions: lc.ServerOptions = {
43 run, 43 run,