From 07394316ff0c5454b3a9e854945ebd29b90259ec Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 4 Jun 2021 15:49:43 +0200 Subject: Add function references hover action --- editors/code/package.json | 5 +++++ editors/code/src/config.ts | 1 + 2 files changed, 6 insertions(+) (limited to 'editors/code') 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 @@ "default": true, "type": "boolean" }, + "rust-analyzer.hoverActions.references": { + "markdownDescription": "Whether to show `References` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", + "default": false, + "type": "boolean" + }, "rust-analyzer.hoverActions.run": { "markdownDescription": "Whether to show `Run` action. Only applies when\n`#rust-analyzer.hoverActions.enable#` is set.", "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 { return { enable: this.get("hoverActions.enable"), implementations: this.get("hoverActions.implementations"), + references: this.get("hoverActions.references"), run: this.get("hoverActions.run"), debug: this.get("hoverActions.debug"), gotoTypeDef: this.get("hoverActions.gotoTypeDef"), -- cgit v1.2.3