aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-18 08:27:00 +0100
committervsrs <[email protected]>2020-05-18 08:27:00 +0100
commit78817a319476d8af40c4f78e8c47dc958781f88f (patch)
treee15efb6555e667cea876cc9479278cb812b792e4 /editors/code
parent3d445256fe56f4a7ead64514fb57b79079973d84 (diff)
Add "rust-analyzer.lens.enable"
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json11
-rw-r--r--editors/code/src/config.ts2
2 files changed, 10 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index efed4c7f2..38c77533c 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -444,18 +444,23 @@
444 "default": {}, 444 "default": {},
445 "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }" 445 "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }"
446 }, 446 },
447 "rust-analyzer.lens.enable": {
448 "description": "Whether to show CodeLens in Rust files.",
449 "type": "boolean",
450 "default": true
451 },
447 "rust-analyzer.lens.run": { 452 "rust-analyzer.lens.run": {
448 "description": "Whether to show Run lens.", 453 "markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
449 "type": "boolean", 454 "type": "boolean",
450 "default": true 455 "default": true
451 }, 456 },
452 "rust-analyzer.lens.debug": { 457 "rust-analyzer.lens.debug": {
453 "description": "Whether to show Debug lens.", 458 "markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
454 "type": "boolean", 459 "type": "boolean",
455 "default": true 460 "default": true
456 }, 461 },
457 "rust-analyzer.lens.implementations": { 462 "rust-analyzer.lens.implementations": {
458 "description": "Whether to show Implementations lens.", 463 "markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
459 "type": "boolean", 464 "type": "boolean",
460 "default": true 465 "default": true
461 } 466 }
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index 93d9aa160..ee294fbe3 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -16,6 +16,7 @@ export class Config {
16 "files", 16 "files",
17 "highlighting", 17 "highlighting",
18 "updates.channel", 18 "updates.channel",
19 "lens.enable",
19 "lens.run", 20 "lens.run",
20 "lens.debug", 21 "lens.debug",
21 "lens.implementations", 22 "lens.implementations",
@@ -125,6 +126,7 @@ export class Config {
125 126
126 get lens() { 127 get lens() {
127 return { 128 return {
129 enable: this.get<boolean>("lens.enable"),
128 run: this.get<boolean>("lens.run"), 130 run: this.get<boolean>("lens.run"),
129 debug: this.get<boolean>("lens.debug"), 131 debug: this.get<boolean>("lens.debug"),
130 implementations: this.get<boolean>("lens.implementations"), 132 implementations: this.get<boolean>("lens.implementations"),