From eeb40dbece3421d685c75bf2860610e6fd3b7b73 Mon Sep 17 00:00:00 2001 From: vsrs Date: Tue, 1 Sep 2020 16:33:02 +0300 Subject: Add method references CodeLens --- editors/code/package.json | 5 +++++ editors/code/src/config.ts | 1 + 2 files changed, 6 insertions(+) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 132664926..4414b3e66 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -554,6 +554,11 @@ "type": "boolean", "default": true }, + "rust-analyzer.lens.methodReferences": { + "markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", + "type": "boolean", + "default": true + }, "rust-analyzer.hoverActions.enable": { "description": "Whether to show HoverActions in Rust files.", "type": "boolean", diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 033b04b60..848e92af9 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -138,6 +138,7 @@ export class Config { run: this.get("lens.run"), debug: this.get("lens.debug"), implementations: this.get("lens.implementations"), + methodReferences: this.get("lens.methodReferences"), }; } -- cgit v1.2.3