From 3618c4e0d3127e6d6eab1b55fd88c353b8d3f6d7 Mon Sep 17 00:00:00 2001 From: vsrs Date: Sat, 23 Jan 2021 16:56:20 +0300 Subject: Add References code lens. For Struct, Enum, Union and Trait symbols. --- 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 3e6ebd7ed..2225cf1dd 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -633,6 +633,11 @@ "default": false, "type": "boolean" }, + "rust-analyzer.lens.references": { + "markdownDescription": "Whether to show `References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", + "default": false, + "type": "boolean" + }, "rust-analyzer.linkedProjects": { "markdownDescription": "Disable project auto-discovery in favor of explicitly specified set of projects.\\n\\nElements must be paths pointing to `Cargo.toml`, `rust-project.json`, or JSON objects in `rust-project.json` format.", "default": [], diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index ebe4de1ea..ddb5cfbd3 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -144,6 +144,7 @@ export class Config { debug: this.get("lens.debug"), implementations: this.get("lens.implementations"), methodReferences: this.get("lens.methodReferences"), + references: this.get("lens.references"), }; } -- cgit v1.2.3