mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
CodeLens configuration options.
This commit is contained in:
parent
71e94b1d0b
commit
dc217bdf90
4 changed files with 168 additions and 92 deletions
|
@ -16,6 +16,9 @@ export class Config {
|
|||
"files",
|
||||
"highlighting",
|
||||
"updates.channel",
|
||||
"lens.run",
|
||||
"lens.debug",
|
||||
"lens.implementations",
|
||||
]
|
||||
.map(opt => `${this.rootSection}.${opt}`);
|
||||
|
||||
|
@ -119,4 +122,12 @@ export class Config {
|
|||
sourceFileMap: sourceFileMap
|
||||
};
|
||||
}
|
||||
|
||||
get lens() {
|
||||
return {
|
||||
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