diff options
author | Aleksey Kladov <[email protected]> | 2020-02-18 12:30:40 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-18 12:30:40 +0000 |
commit | d05480a178b132e62b8aff8986a8cb3dd3a89c0b (patch) | |
tree | 0fc36373073a66c2bbd6c7cfae6cb734527d847f /editors/code/src | |
parent | 2768476e491d985317b08230824f96e6718f338a (diff) | |
parent | 865759925be6b72f7ef39124ed0e4c86c0412a69 (diff) |
Merge pull request #3216 from matklad/rename-to-rust-analyzer
rename binary to rust-analyzer
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/config.ts | 10 | ||||
-rw-r--r-- | editors/code/src/installation/server.ts | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index fab062dda..347c989c4 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts | |||
@@ -76,7 +76,7 @@ export class Config { | |||
76 | } | 76 | } |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Name of the binary artifact for `ra_lsp_server` that is published for | 79 | * Name of the binary artifact for `rust-analyzer` that is published for |
80 | * `platform` on GitHub releases. (It is also stored under the same name when | 80 | * `platform` on GitHub releases. (It is also stored under the same name when |
81 | * downloaded by the extension). | 81 | * downloaded by the extension). |
82 | */ | 82 | */ |
@@ -91,12 +91,12 @@ export class Config { | |||
91 | case "arm": | 91 | case "arm": |
92 | case "arm64": return null; | 92 | case "arm64": return null; |
93 | 93 | ||
94 | default: return "ra_lsp_server-linux"; | 94 | default: return "rust-analyzer-linux"; |
95 | } | 95 | } |
96 | } | 96 | } |
97 | 97 | ||
98 | case "darwin": return "ra_lsp_server-mac"; | 98 | case "darwin": return "rust-analyzer-mac"; |
99 | case "win32": return "ra_lsp_server-windows.exe"; | 99 | case "win32": return "rust-analyzer-windows.exe"; |
100 | 100 | ||
101 | // Users on these platforms yet need to manually build from sources | 101 | // Users on these platforms yet need to manually build from sources |
102 | case "aix": | 102 | case "aix": |
@@ -111,7 +111,7 @@ export class Config { | |||
111 | } | 111 | } |
112 | 112 | ||
113 | get serverSource(): null | BinarySource { | 113 | get serverSource(): null | BinarySource { |
114 | const serverPath = RA_LSP_DEBUG ?? this.cfg.get<null | string>("raLspServerPath"); | 114 | const serverPath = RA_LSP_DEBUG ?? this.cfg.get<null | string>("serverPath"); |
115 | 115 | ||
116 | if (serverPath) { | 116 | if (serverPath) { |
117 | return { | 117 | return { |
diff --git a/editors/code/src/installation/server.ts b/editors/code/src/installation/server.ts index 80cb719e3..6e730fbfc 100644 --- a/editors/code/src/installation/server.ts +++ b/editors/code/src/installation/server.ts | |||
@@ -29,7 +29,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n | |||
29 | 29 | ||
30 | vscode.window.showErrorMessage( | 30 | vscode.window.showErrorMessage( |
31 | `Unable to run ${source.path} binary. ` + | 31 | `Unable to run ${source.path} binary. ` + |
32 | `To use the pre-built language server, set "rust-analyzer.raLspServerPath" ` + | 32 | `To use the pre-built language server, set "rust-analyzer.serverPath" ` + |
33 | "value to `null` or remove it from the settings to use it by default." | 33 | "value to `null` or remove it from the settings to use it by default." |
34 | ); | 34 | ); |
35 | return null; | 35 | return null; |