Unnamed repository; edit this file 'description' to name the repository.
Remove channel and ask before download prefs
Laurențiu Nicola 2021-12-23
parent c68dbc1 · commit 650ec14
-rw-r--r--editors/code/package.json18
-rw-r--r--editors/code/src/config.ts3
2 files changed, 0 insertions, 21 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index fc78b2830a..550b28e1cd 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -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",
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index cb0868db59..0178e4bb87 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -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