mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +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,11 +55,14 @@ impl GlobalState {
|
||||||
self.reload_flycheck();
|
self.reload_flycheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply experimental feature flags.
|
if self.analysis_host.raw_database().enable_proc_attr_macros()
|
||||||
|
!= self.config.expand_proc_attr_macros()
|
||||||
|
{
|
||||||
self.analysis_host
|
self.analysis_host
|
||||||
.raw_database_mut()
|
.raw_database_mut()
|
||||||
.set_enable_proc_attr_macros(self.config.expand_proc_attr_macros());
|
.set_enable_proc_attr_macros(self.config.expand_proc_attr_macros());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub(crate) fn current_status(&self) -> lsp_ext::ServerStatusParams {
|
pub(crate) fn current_status(&self) -> lsp_ext::ServerStatusParams {
|
||||||
let mut status = lsp_ext::ServerStatusParams {
|
let mut status = lsp_ext::ServerStatusParams {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue