mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add hover actions as LSP extension
This commit is contained in:
parent
913a623281
commit
7d0dd17b09
11 changed files with 351 additions and 56 deletions
|
@ -16,10 +16,8 @@ export class Config {
|
|||
"files",
|
||||
"highlighting",
|
||||
"updates.channel",
|
||||
"lens.enable",
|
||||
"lens.run",
|
||||
"lens.debug",
|
||||
"lens.implementations",
|
||||
"lens", // works as lens.*
|
||||
"hoverActions", // works as hoverActions.*
|
||||
]
|
||||
.map(opt => `${this.rootSection}.${opt}`);
|
||||
|
||||
|
@ -132,4 +130,11 @@ export class Config {
|
|||
implementations: this.get<boolean>("lens.implementations"),
|
||||
};
|
||||
}
|
||||
|
||||
get hoverActions() {
|
||||
return {
|
||||
enable: this.get<boolean>("hoverActions.enable"),
|
||||
implementations: this.get<boolean>("hoverActions.implementations"),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue