File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ pub struct Config {
1818 pub client_caps : ClientCapsConfig ,
1919
2020 pub with_sysroot : bool ,
21- // TODO: verify that it means what I think it means
2221 pub publish_diagnostics : bool ,
2322 // TODO: move to experimental capabilities
2423 pub vscode_lldb : bool ,
Original file line number Diff line number Diff line change @@ -889,10 +889,9 @@ fn update_file_notifications_on_threadpool(
889889 subscriptions : Vec < FileId > ,
890890) {
891891 log:: trace!( "updating notifications for {:?}" , subscriptions) ;
892- let publish_diagnostics = world. config . publish_diagnostics ;
893- pool. execute ( move || {
894- for file_id in subscriptions {
895- if publish_diagnostics {
892+ if world. config . publish_diagnostics {
893+ pool. execute ( move || {
894+ for file_id in subscriptions {
896895 match handlers:: publish_diagnostics ( & world, file_id) {
897896 Err ( e) => {
898897 if !is_canceled ( & e) {
@@ -904,8 +903,8 @@ fn update_file_notifications_on_threadpool(
904903 }
905904 }
906905 }
907- }
908- } ) ;
906+ } )
907+ }
909908}
910909
911910pub fn show_message ( typ : req:: MessageType , message : impl Into < String > , sender : & Sender < Message > ) {
You can’t perform that action at this time.
0 commit comments