From 01a5b8356292e9c840b79ac94862a608196763b4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 4 Jan 2021 18:39:15 +0300 Subject: [PATCH] Rename extension config --- editors/code/package.json | 2 +- editors/code/src/config.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"); }