aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-09-29 13:36:11 +0100
committerGitHub <[email protected]>2020-09-29 13:36:11 +0100
commitbdc1f76cbda7478f39c190cc6ba296bc0030928f (patch)
tree91d3312e41626d40387d59e9243ae32b099eecb1 /editors
parente813de6cdd53e542bce8d4a554288dc2f17bbf5e (diff)
parent91da41b3b13129007920943d7300459921faf3c5 (diff)
Merge #5928
5928: Add method references CodeLens r=vsrs a=vsrs The PR adds CodeLens for methods and free-standing functions: ![method_refs](https://user-images.githubusercontent.com/62505555/91858244-95fbfb00-ec71-11ea-90c7-5b3ee067e305.png) Relates to #5836 Co-authored-by: vsrs <[email protected]>
Diffstat (limited to 'editors')
-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 132664926..bdd8a0c29 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -554,6 +554,11 @@
554 "type": "boolean", 554 "type": "boolean",
555 "default": true 555 "default": true
556 }, 556 },
557 "rust-analyzer.lens.methodReferences": {
558 "markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
559 "type": "boolean",
560 "default": false
561 },
557 "rust-analyzer.hoverActions.enable": { 562 "rust-analyzer.hoverActions.enable": {
558 "description": "Whether to show HoverActions in Rust files.", 563 "description": "Whether to show HoverActions in Rust files.",
559 "type": "boolean", 564 "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 {
138 run: this.get<boolean>("lens.run"), 138 run: this.get<boolean>("lens.run"),
139 debug: this.get<boolean>("lens.debug"), 139 debug: this.get<boolean>("lens.debug"),
140 implementations: this.get<boolean>("lens.implementations"), 140 implementations: this.get<boolean>("lens.implementations"),
141 methodReferences: this.get<boolean>("lens.methodReferences"),
141 }; 142 };
142 } 143 }
143 144