Try not to invalidate our state when the proc macro preference didn't change
This commit is contained in:
parent
dd3f5e0993
commit
97cdf3eb0e
@ -55,11 +55,14 @@ pub(crate) fn update_configuration(&mut self, config: Config) {
|
||||
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 New Issue
Block a user