Remove channel and ask before download prefs

This commit is contained in:
Laurențiu Nicola 2021-12-23 08:32:58 +02:00
parent c68dbc16f8
commit 650ec14e4f
2 changed files with 0 additions and 21 deletions

View File

@ -303,24 +303,6 @@
"default": true,
"description": "Whether inlay hints font size should be smaller than editor's font size."
},
"rust-analyzer.updates.channel": {
"type": "string",
"enum": [
"stable",
"nightly"
],
"default": "stable",
"markdownEnumDescriptions": [
"`stable` updates are shipped weekly, they don't contain cutting-edge features from VSCode proposed APIs but have less bugs in general.",
"`nightly` updates are shipped daily (extension updates automatically by downloading artifacts directly from GitHub), they contain cutting-edge features and latest bug fixes. These releases help us get your feedback very quickly and speed up rust-analyzer development **drastically**."
],
"markdownDescription": "Choose `nightly` updates to get the latest features and bug fixes every day. While `stable` releases occur weekly and don't contain cutting-edge features from VSCode proposed APIs."
},
"rust-analyzer.updates.askBeforeDownload": {
"type": "boolean",
"default": false,
"description": "Whether to ask for permission before downloading any files from the Internet."
},
"rust-analyzer.server.path": {
"type": [
"null",

View File

@ -24,7 +24,6 @@ export class Config {
"procMacro",
"files",
"highlighting",
"updates.channel",
"lens", // works as lens.*
]
.map(opt => `${this.rootSection}.${opt}`);
@ -103,8 +102,6 @@ export class Config {
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
}
get serverExtraEnv() { return this.get<Env | null>("server.extraEnv") ?? {}; }
get channel() { return this.get<UpdatesChannel>("updates.channel"); }
get askBeforeDownload() { return this.get<boolean>("updates.askBeforeDownload"); }
get traceExtension() { return this.get<boolean>("trace.extension"); }
get proxySettings(): ProxySettings {
const proxy = vscode