diff options
| author | Kirill Bulatov <mail4score@gmail.com> | 2020-11-16 00:19:04 +0200 |
|---|---|---|
| committer | Kirill Bulatov <mail4score@gmail.com> | 2021-05-23 22:46:20 +0300 |
| commit | d9a5490646f68efdb70f84713d3a418a2b2a0b00 (patch) | |
| tree | 2cad71ad7056d07c3e06c6566bd5b74a6cae5054 /editors/code/src/client.ts | |
| parent | 16054887102104208f4a0fc0e75e702b85a2eae8 (diff) | |
| download | rust-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.ts | 2 |
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. |
