diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 9bd9e3daebd1a226ff221fe4c08300f0996be4b8..c1ec82b3493d8bf16b9afdc010a25d10b079e8c6 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1299,6 +1299,9 @@ impl Editor { project::Event::ReloadInlayHints => { editor.reload_inlay_hints(cx); } + project::Event::ActiveEntryChanged(Some(_)) => { + editor.reload_inlay_hints(cx); + } _ => {} }; cx.notify() @@ -7299,7 +7302,7 @@ impl Editor { self.refresh_active_diagnostics(cx); false } - _ => true, + _ => false, }; if update_inlay_hints {