From 3eb45b99223ae6a708d82c52d656c697bc993c3b Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 31 Mar 2020 10:23:18 +0100 Subject: Pass string instread of WorkspaceFolder --- editors/code/src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/code/src/client.ts') 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) { }; } -export async function createClient(config: Config, serverPath: string, workspaceFolder: vscode.WorkspaceFolder): Promise { +export async function createClient(config: Config, serverPath: string, cwd: string): Promise { // '.' 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, -- cgit v1.2.3