aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-04 14:55:49 +0100
committerGitHub <[email protected]>2021-06-04 14:55:49 +0100
commitdceec3eb80f3f2d064536ef8272522f65ec1a76c (patch)
tree43dc7fa25956c233f6a2b3384c134eb48a243a36 /editors/code
parentcd46255d7e8bb59b93a32d5cb50581f418ca5f3b (diff)
parent07394316ff0c5454b3a9e854945ebd29b90259ec (diff)
Merge #9136
9136: feat: Add function references hover action r=Veykril a=Veykril ![image](https://user-images.githubusercontent.com/3757771/120811670-8422ed80-c54c-11eb-87f5-dd65c1f8ef7d.png) This is off by default as this can slow down hover messages significantly for very big projects I believe. Fixes #6590 bors r+ Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json5
-rw-r--r--editors/code/src/config.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index bffc1e05b..0f3ed48a0 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -660,6 +660,11 @@
660 "default": true, 660 "default": true,
661 "type": "boolean" 661 "type": "boolean"
662 }, 662 },
663 "rust-analyzer.hoverActions.references": {
664 "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
665 "default": false,
666 "type": "boolean"
667 },
663 "rust-analyzer.hoverActions.run": { 668 "rust-analyzer.hoverActions.run": {
664 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", 669 "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.",
665 "default": true, 670 "default": true,
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index d3d6e631a..1f1fe59a4 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -165,6 +165,7 @@ export class Config {
165 return { 165 return {
166 enable: this.get<boolean>("hoverActions.enable"), 166 enable: this.get<boolean>("hoverActions.enable"),
167 implementations: this.get<boolean>("hoverActions.implementations"), 167 implementations: this.get<boolean>("hoverActions.implementations"),
168 references: this.get<boolean>("hoverActions.references"),
168 run: this.get<boolean>("hoverActions.run"), 169 run: this.get<boolean>("hoverActions.run"),
169 debug: this.get<boolean>("hoverActions.debug"), 170 debug: this.get<boolean>("hoverActions.debug"),
170 gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"), 171 gotoTypeDef: this.get<boolean>("hoverActions.gotoTypeDef"),