about summary refs log tree commit diff
path: root/editors/code/src/client.ts
diff options
context:
space:
mode:
authorKirill Bulatov <mail4score@gmail.com>2020-11-16 00:19:04 +0200
committerKirill Bulatov <mail4score@gmail.com>2021-05-23 22:46:20 +0300
commitd9a5490646f68efdb70f84713d3a418a2b2a0b00 (patch)
tree2cad71ad7056d07c3e06c6566bd5b74a6cae5054 /editors/code/src/client.ts
parent16054887102104208f4a0fc0e75e702b85a2eae8 (diff)
downloadrust-d9a5490646f68efdb70f84713d3a418a2b2a0b00.tar.gz
rust-d9a5490646f68efdb70f84713d3a418a2b2a0b00.zip
Start rust-analyzer server for arbitrary rust files
Diffstat (limited to 'editors/code/src/client.ts')
-rw-r--r--editors/code/src/client.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 116f41df6e9..131a2f19a77 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -23,7 +23,7 @@ function renderHoverActions(actions: ra.CommandLinkGroup[]): vscode.MarkdownStri
     return result;
 }
 
-export function createClient(serverPath: string, cwd: string, extraEnv: Env): lc.LanguageClient {
+export function createClient(serverPath: string, cwd: string | undefined, extraEnv: Env): 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.