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/code') 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 From b7fda5f936737aa1111599f93cb3133fa7f65ee4 Mon Sep 17 00:00:00 2001 From: vsrs Date: Wed, 2 Sep 2020 13:25:33 +0300 Subject: Make method references CodeLens off by default. --- editors/code/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index 4414b3e66..bdd8a0c29 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -557,7 +557,7 @@ "rust-analyzer.lens.methodReferences": { "markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.", "type": "boolean", - "default": true + "default": false }, "rust-analyzer.hoverActions.enable": { "description": "Whether to show HoverActions in Rust files.", -- cgit v1.2.3