File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -296,9 +296,9 @@ impl GlobalState {
296296 let workspaces =
297297 workspaces. iter ( ) . filter_map ( |res| res. as_ref ( ) . ok ( ) . cloned ( ) ) . collect :: < Vec < _ > > ( ) ;
298298
299- // `different_workspaces` is used to spawn a new proc macro server for a newly-added
300- // rust workspace (most commonly sourced from a `rust-project.json`). While the algorithm
301- // to find the new workspaces is quadratic, we generally expect that the number of total
299+ // `different_workspaces` is used to determine whether to spawn a a new proc macro server for
300+ // a newly-added rust workspace (most commonly sourced from a `rust-project.json`). While the
301+ // algorithm to find the new workspaces is quadratic, we generally expect that the number of total
302302 // workspaces to remain in the low single digits. the `cloned_workspace` is needed for borrowck
303303 // reasons.
304304 let cloned_workspaces = workspaces. clone ( ) ;
@@ -387,7 +387,8 @@ impl GlobalState {
387387 if self . proc_macro_clients . is_empty ( ) || !different_workspaces. is_empty ( ) {
388388 if let Some ( ( path, path_manually_set) ) = self . config . proc_macro_srv ( ) {
389389 tracing:: info!( "Spawning proc-macro servers" ) ;
390- self . proc_macro_clients = different_workspaces
390+ self . proc_macro_clients = self
391+ . workspaces
391392 . iter ( )
392393 . map ( |ws| {
393394 let ( path, args) : ( _ , & [ _ ] ) = if path_manually_set {
You can’t perform that action at this time.
0 commit comments