mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 21:37:39 +00:00
Add "rust-analyzer.lens.enable"
This commit is contained in:
parent
3d445256fe
commit
78817a3194
3 changed files with 22 additions and 6 deletions
|
|
@ -444,18 +444,23 @@
|
|||
"default": {},
|
||||
"description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }"
|
||||
},
|
||||
"rust-analyzer.lens.enable": {
|
||||
"description": "Whether to show CodeLens in Rust files.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"rust-analyzer.lens.run": {
|
||||
"description": "Whether to show Run lens.",
|
||||
"markdownDescription": "Whether to show Run lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"rust-analyzer.lens.debug": {
|
||||
"description": "Whether to show Debug lens.",
|
||||
"markdownDescription": "Whether to show Debug lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"rust-analyzer.lens.implementations": {
|
||||
"description": "Whether to show Implementations lens.",
|
||||
"markdownDescription": "Whether to show Implementations lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ export class Config {
|
|||
"files",
|
||||
"highlighting",
|
||||
"updates.channel",
|
||||
"lens.enable",
|
||||
"lens.run",
|
||||
"lens.debug",
|
||||
"lens.implementations",
|
||||
|
|
@ -125,6 +126,7 @@ export class Config {
|
|||
|
||||
get lens() {
|
||||
return {
|
||||
enable: this.get<boolean>("lens.enable"),
|
||||
run: this.get<boolean>("lens.run"),
|
||||
debug: this.get<boolean>("lens.debug"),
|
||||
implementations: this.get<boolean>("lens.implementations"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue