Skip to content

Commit b7fda5f

Browse files
committed
Make method references CodeLens off by default.
1 parent eeb40db commit b7fda5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub struct LensConfig {
7979

8080
impl Default for LensConfig {
8181
fn default() -> Self {
82-
Self { run: true, debug: true, implementations: true, method_refs: true }
82+
Self { run: true, debug: true, implementations: true, method_refs: false }
8383
}
8484
}
8585

@@ -467,7 +467,7 @@ config_data! {
467467
lens_enable: bool = true,
468468
lens_implementations: bool = true,
469469
lens_run: bool = true,
470-
lens_methodReferences: bool = true,
470+
lens_methodReferences: bool = false,
471471

472472
linkedProjects: Vec<ManifestOrProjectJson> = Vec::new(),
473473
lruCapacity: Option<usize> = None,

editors/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
"rust-analyzer.lens.methodReferences": {
558558
"markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
559559
"type": "boolean",
560-
"default": true
560+
"default": false
561561
},
562562
"rust-analyzer.hoverActions.enable": {
563563
"description": "Whether to show HoverActions in Rust files.",

0 commit comments

Comments
 (0)