File tree 3 files changed +1
-20
lines changed
3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -655,9 +655,6 @@ config_data! {
655
655
lens_debug_enable: bool = true ,
656
656
/// Whether to show CodeLens in Rust files.
657
657
lens_enable: bool = true ,
658
- /// Internal config: use custom client-side commands even when the
659
- /// client doesn't set the corresponding capability.
660
- lens_forceCustomCommands: bool = true ,
661
658
/// Whether to show `Implementations` lens. Only applies when
662
659
/// `#rust-analyzer.lens.enable#` is set.
663
660
lens_implementations_enable: bool = true ,
@@ -2032,7 +2029,7 @@ impl Config {
2032
2029
2033
2030
pub fn client_commands ( & self ) -> ClientCommandsConfig {
2034
2031
let commands = self . commands ( ) ;
2035
- let force = commands. is_none ( ) && * self . lens_forceCustomCommands ( ) ;
2032
+ let force = commands. is_none ( ) ;
2036
2033
let commands = commands. map ( |it| it. commands ) . unwrap_or_default ( ) ;
2037
2034
2038
2035
let get = |name : & str | commands. iter ( ) . any ( |it| it == name) || force;
Original file line number Diff line number Diff line change @@ -764,12 +764,6 @@ Whether to show `Debug` lens. Only applies when
764
764
--
765
765
Whether to show CodeLens in Rust files.
766
766
--
767
- [[rust-analyzer.lens.forceCustomCommands]]rust-analyzer.lens.forceCustomCommands (default: `true` )::
768
- +
769
- --
770
- Internal config: use custom client-side commands even when the
771
- client doesn't set the corresponding capability.
772
- --
773
767
[[rust-analyzer.lens.implementations.enable]]rust-analyzer.lens.implementations.enable (default: `true` )::
774
768
+
775
769
--
Original file line number Diff line number Diff line change 2138
2138
}
2139
2139
}
2140
2140
},
2141
- {
2142
- "title" : " lens" ,
2143
- "properties" : {
2144
- "rust-analyzer.lens.forceCustomCommands" : {
2145
- "markdownDescription" : " Internal config: use custom client-side commands even when the\n client doesn't set the corresponding capability." ,
2146
- "default" : true ,
2147
- "type" : " boolean"
2148
- }
2149
- }
2150
- },
2151
2141
{
2152
2142
"title" : " lens" ,
2153
2143
"properties" : {
You can’t perform that action at this time.
0 commit comments