Try not to invalidate our state when the proc macro preference didn't change

This commit is contained in:
Laurențiu Nicola 2022-05-06 09:46:02 +03:00
parent dd3f5e0993
commit 97cdf3eb0e

View file

@ -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 {