File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1597,6 +1597,16 @@ impl Config {
1597
1597
term_search_borrowck : self . assist_termSearch_borrowcheck ( source_root) . to_owned ( ) ,
1598
1598
}
1599
1599
}
1600
+
1601
+ pub fn diagnostic_fixes ( & self , source_root : Option < SourceRootId > ) -> DiagnosticsConfig {
1602
+ // We always want to show quickfixes for diagnostics, even when diagnostics/experimental diagnostics are disabled.
1603
+ DiagnosticsConfig {
1604
+ enabled : true ,
1605
+ disable_experimental : false ,
1606
+ ..self . diagnostics ( source_root)
1607
+ }
1608
+ }
1609
+
1600
1610
pub fn expand_proc_attr_macros ( & self ) -> bool {
1601
1611
self . procMacro_enable ( ) . to_owned ( ) && self . procMacro_attributes_enable ( ) . to_owned ( )
1602
1612
}
Original file line number Diff line number Diff line change @@ -1439,7 +1439,7 @@ pub(crate) fn handle_code_action(
1439
1439
} ;
1440
1440
let assists = snap. analysis . assists_with_fixes (
1441
1441
& assists_config,
1442
- & snap. config . diagnostics ( Some ( source_root) ) ,
1442
+ & snap. config . diagnostic_fixes ( Some ( source_root) ) ,
1443
1443
resolve,
1444
1444
frange,
1445
1445
) ?;
@@ -1530,7 +1530,7 @@ pub(crate) fn handle_code_action_resolve(
1530
1530
1531
1531
let assists = snap. analysis . assists_with_fixes (
1532
1532
& assists_config,
1533
- & snap. config . diagnostics ( Some ( source_root) ) ,
1533
+ & snap. config . diagnostic_fixes ( Some ( source_root) ) ,
1534
1534
AssistResolveStrategy :: Single ( assist_resolve) ,
1535
1535
frange,
1536
1536
) ?;
You can’t perform that action at this time.
0 commit comments