diff options
| author | Tim <tdhutt@gmail.com> | 2020-03-31 10:23:18 +0100 |
|---|---|---|
| committer | Tim Hutt <timh@graphcore.ai> | 2020-03-31 10:24:01 +0100 |
| commit | 3eb45b99223ae6a708d82c52d656c697bc993c3b (patch) | |
| tree | 4dfb02c7d39debea0486f96a0fdccb3a288b70b3 /editors/code/src/client.ts | |
| parent | 9ef1e9efc6039c9299cbb866118ff92cb4467202 (diff) | |
| download | rust-3eb45b99223ae6a708d82c52d656c697bc993c3b.tar.gz rust-3eb45b99223ae6a708d82c52d656c697bc993c3b.zip | |
Pass string instread of WorkspaceFolder
Diffstat (limited to 'editors/code/src/client.ts')
| -rw-r--r-- | editors/code/src/client.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 0de45bb3040..f909f8db26b 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -30,14 +30,14 @@ export function configToServerOptions(config: Config) { }; } -export async function createClient(config: Config, serverPath: string, workspaceFolder: vscode.WorkspaceFolder): Promise<lc.LanguageClient> { +export async function createClient(config: Config, serverPath: string, cwd: string): Promise<lc.LanguageClient> { // '.' Is the fallback if no folder is open // TODO?: Workspace folders support Uri's (eg: file://test.txt). // It might be a good idea to test if the uri points to a file. const run: lc.Executable = { command: serverPath, - options: { cwd: workspaceFolder.uri.fsPath }, + options: { cwd }, }; const serverOptions: lc.ServerOptions = { run, |
