From c0fa5e2246457df10e92c2e11c971f2f40921793 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Feb 2020 12:33:16 +0100 Subject: Rename the binary to rust-analyzer --- editors/code/package.json | 4 ++-- editors/code/src/config.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 002293b2e..2a0304376 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -185,7 +185,7 @@ "string" ], "default": null, - "description": "Path to ra_lsp_server executable (points to bundled binary by default)" + "description": "Path to rust-analyzer executable (points to bundled binary by default)" }, "rust-analyzer.excludeGlobs": { "type": "array", @@ -245,7 +245,7 @@ "Full log" ], "default": "off", - "description": "Trace requests to the ra_lsp_server" + "description": "Trace requests to the rust-analyzer" }, "rust-analyzer.lruCapacity": { "type": [ diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index fab062dda..7142f72af 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -76,7 +76,7 @@ export class Config { } /** - * Name of the binary artifact for `ra_lsp_server` that is published for + * Name of the binary artifact for `rust-analyzer` that is published for * `platform` on GitHub releases. (It is also stored under the same name when * downloaded by the extension). */ @@ -91,12 +91,12 @@ export class Config { case "arm": case "arm64": return null; - default: return "ra_lsp_server-linux"; + default: return "rust-analyzer-linux"; } } - case "darwin": return "ra_lsp_server-mac"; - case "win32": return "ra_lsp_server-windows.exe"; + case "darwin": return "rust-analyzer-mac"; + case "win32": return "rust-analyzer-windows.exe"; // Users on these platforms yet need to manually build from sources case "aix": -- cgit v1.2.3 From c855e36696afa54260773a6bc8a358df67d60dea Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Feb 2020 12:35:44 +0100 Subject: Rename config value for server Path --- editors/code/package.json | 2 +- editors/code/src/config.ts | 2 +- editors/code/src/installation/server.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 2a0304376..c498c14b4 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -179,7 +179,7 @@ "default": {}, "description": "Fine grained feature flags to disable annoying features" }, - "rust-analyzer.raLspServerPath": { + "rust-analyzer.serverPath": { "type": [ "null", "string" diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 7142f72af..347c989c4 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -111,7 +111,7 @@ export class Config { } get serverSource(): null | BinarySource { - const serverPath = RA_LSP_DEBUG ?? this.cfg.get("raLspServerPath"); + const serverPath = RA_LSP_DEBUG ?? this.cfg.get("serverPath"); if (serverPath) { 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