diff --git a/editors/code/package.json b/editors/code/package.json index 3e55a352343..63db8706476 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -280,7 +280,7 @@ "default": true, "description": "Whether to ask for permission before downloading any files from the Internet." }, - "rust-analyzer.serverPath": { + "rust-analyzer.server.path": { "type": [ "null", "string" diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index fe9f3b4a87b..ebe4de1ea5b 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -93,7 +93,9 @@ export class Config { return this.cfg.get(path)!; } - get serverPath() { return this.get("serverPath"); } + get serverPath() { + return this.get("server.path") ?? this.get("serverPath"); + } get serverExtraEnv() { return this.get("server.extraEnv") ?? {}; } get channel() { return this.get("updates.channel"); } get askBeforeDownload() { return this.get("updates.askBeforeDownload"); }