mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Auto merge of #12171 - lnicola:proc-macros-dont-invalidate-state, r=Veykril
fix: Try not to invalidate state when the proc macro preference didn't change This appears to fix #12027, but I'm not sure.
This commit is contained in:
commit
db1434b34f
1 changed files with 7 additions and 4 deletions
|
@ -55,10 +55,13 @@ impl GlobalState {
|
|||
self.reload_flycheck();
|
||||
}
|
||||
|
||||
// Apply experimental feature flags.
|
||||
self.analysis_host
|
||||
.raw_database_mut()
|
||||
.set_enable_proc_attr_macros(self.config.expand_proc_attr_macros());
|
||||
if self.analysis_host.raw_database().enable_proc_attr_macros()
|
||||
!= self.config.expand_proc_attr_macros()
|
||||
{
|
||||
self.analysis_host
|
||||
.raw_database_mut()
|
||||
.set_enable_proc_attr_macros(self.config.expand_proc_attr_macros());
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn current_status(&self) -> lsp_ext::ServerStatusParams {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue