aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-04 14:49:43 +0100
committerLukas Wirth <[email protected]>2021-06-04 14:54:55 +0100
commit07394316ff0c5454b3a9e854945ebd29b90259ec (patch)
tree43dc7fa25956c233f6a2b3384c134eb48a243a36 /editors/code
parentcd46255d7e8bb59b93a32d5cb50581f418ca5f3b (diff)
Add function references hover action
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"),