mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Make method references CodeLens off by default.
This commit is contained in:
parent
eeb40dbece
commit
b7fda5f936
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ pub struct LensConfig {
|
||||||
|
|
||||||
impl Default for LensConfig {
|
impl Default for LensConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self { run: true, debug: true, implementations: true, method_refs: true }
|
Self { run: true, debug: true, implementations: true, method_refs: false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -467,7 +467,7 @@ config_data! {
|
||||||
lens_enable: bool = true,
|
lens_enable: bool = true,
|
||||||
lens_implementations: bool = true,
|
lens_implementations: bool = true,
|
||||||
lens_run: bool = true,
|
lens_run: bool = true,
|
||||||
lens_methodReferences: bool = true,
|
lens_methodReferences: bool = false,
|
||||||
|
|
||||||
linkedProjects: Vec<ManifestOrProjectJson> = Vec::new(),
|
linkedProjects: Vec<ManifestOrProjectJson> = Vec::new(),
|
||||||
lruCapacity: Option<usize> = None,
|
lruCapacity: Option<usize> = None,
|
||||||
|
|
|
@ -557,7 +557,7 @@
|
||||||
"rust-analyzer.lens.methodReferences": {
|
"rust-analyzer.lens.methodReferences": {
|
||||||
"markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
|
"markdownDescription": "Whether to show `Method References` lens. Only applies when `#rust-analyzer.lens.enable#` is set.",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true
|
"default": false
|
||||||
},
|
},
|
||||||
"rust-analyzer.hoverActions.enable": {
|
"rust-analyzer.hoverActions.enable": {
|
||||||
"description": "Whether to show HoverActions in Rust files.",
|
"description": "Whether to show HoverActions in Rust files.",
|
||||||
|
|
Loading…
Reference in a new issue