This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ impl RootDatabase {
64
64
// SourceDatabase
65
65
base_db:: ParseQuery
66
66
base_db:: CrateGraphQuery
67
+ base_db:: ProcMacrosQuery
67
68
68
69
// SourceDatabaseExt
69
70
base_db:: FileTextQuery
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ impl RootDatabase {
137
137
pub fn new ( lru_capacity : Option < usize > ) -> RootDatabase {
138
138
let mut db = RootDatabase { storage : ManuallyDrop :: new ( salsa:: Storage :: default ( ) ) } ;
139
139
db. set_crate_graph_with_durability ( Default :: default ( ) , Durability :: HIGH ) ;
140
+ db. set_proc_macros_with_durability ( Default :: default ( ) , Durability :: HIGH ) ;
140
141
db. set_local_roots_with_durability ( Default :: default ( ) , Durability :: HIGH ) ;
141
142
db. set_library_roots_with_durability ( Default :: default ( ) , Durability :: HIGH ) ;
142
143
db. set_enable_proc_attr_macros ( false ) ;
Original file line number Diff line number Diff line change @@ -445,12 +445,14 @@ impl GlobalState {
445
445
let mut change = Change :: new ( ) ;
446
446
change. set_crate_graph ( crate_graph) ;
447
447
self . analysis_host . apply_change ( change) ;
448
+ self . process_changes ( ) ;
448
449
449
- if same_workspaces {
450
+ if same_workspaces && ! self . fetch_workspaces_queue . op_requested ( ) {
450
451
self . load_proc_macros ( proc_macro_paths) ;
451
452
}
452
- self . process_changes ( ) ;
453
+
453
454
self . reload_flycheck ( ) ;
455
+
454
456
tracing:: info!( "did switch workspaces" ) ;
455
457
}
456
458
You can’t perform that action at this time.
0 commit comments