mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
Try not to invalidate our state when the proc macro preference didn't change
This commit is contained in:
parent
dd3f5e0993
commit
97cdf3eb0e
1 changed files with 7 additions and 4 deletions
|
@ -55,11 +55,14 @@ impl GlobalState {
|
|||
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
|
||||
.raw_database_mut()
|
||||
.set_enable_proc_attr_macros(self.config.expand_proc_attr_macros());
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn current_status(&self) -> lsp_ext::ServerStatusParams {
|
||||
let mut status = lsp_ext::ServerStatusParams {
|
||||
|
|
Loading…
Reference in a new issue