File tree Expand file tree Collapse file tree 3 files changed +2
-23
lines changed Expand file tree Collapse file tree 3 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -655,9 +655,6 @@ config_data! {
655655 lens_debug_enable: bool = true ,
656656 /// Whether to show CodeLens in Rust files.
657657 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 ,
661658 /// Whether to show `Implementations` lens. Only applies when
662659 /// `#rust-analyzer.lens.enable#` is set.
663660 lens_implementations_enable: bool = true ,
@@ -2031,11 +2028,9 @@ impl Config {
20312028 }
20322029
20332030 pub fn client_commands ( & self ) -> ClientCommandsConfig {
2034- let commands = self . commands ( ) ;
2035- let force = commands. is_none ( ) && * self . lens_forceCustomCommands ( ) ;
2036- let commands = commands. map ( |it| it. commands ) . unwrap_or_default ( ) ;
2031+ let commands = self . commands ( ) . map ( |it| it. commands ) . unwrap_or_default ( ) ;
20372032
2038- let get = |name : & str | commands. iter ( ) . any ( |it| it == name) || force ;
2033+ let get = |name : & str | commands. iter ( ) . any ( |it| it == name) ;
20392034
20402035 ClientCommandsConfig {
20412036 run_single : get ( "rust-analyzer.runSingle" ) ,
Original file line number Diff line number Diff line change @@ -764,12 +764,6 @@ Whether to show `Debug` lens. Only applies when
764764--
765765Whether to show CodeLens in Rust files.
766766--
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- --
773767[[rust-analyzer.lens.implementations.enable]]rust-analyzer.lens.implementations.enable (default: `true` )::
774768+
775769--
Original file line number Diff line number Diff line change 21382138 }
21392139 }
21402140 },
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- },
21512141 {
21522142 "title" : " lens" ,
21532143 "properties" : {
You can’t perform that action at this time.
0 commit comments