diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index fb3312614e..4ce05a26c7 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc @@ -43,7 +43,7 @@ image::https://user-images.githubusercontent.com/9021944/75067008-17502500-54ba- > Note: to disable this notification put the following to `settings.json` > ```json { - "rust-analyzer.alwaysDownloadServer": true + "rust-analyzer.askBeforeDownload": false } ``` diff --git a/editors/code/package.json b/editors/code/package.json index 7bcd45e151..430a61c640 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -219,10 +219,10 @@ } } }, - "rust-analyzer.alwaysDownloadServer": { + "rust-analyzer.askBeforeDownload": { "type": "boolean", - "default": false, - "description": "Whether to ask before downloading the language server binary" + "default": true, + "description": "Whether to ask for permission before downloading any files from the Internet" }, "rust-analyzer.serverPath": { "type": [ diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index c4acb632db..cb9af86c09 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -134,7 +134,7 @@ export class Config { file: prebuiltBinaryName, storage: this.ctx.globalState, tag: Config.extensionVersion, - askBeforeDownload: !(this.cfg.get("alwaysDownloadServer") as boolean), + askBeforeDownload: !(this.cfg.get("askBeforeDownload") as boolean), repo: { name: "rust-analyzer", owner: "rust-analyzer",