diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 7e633a40e6525668d76ab95d2163a615c296a6e0..18fede90dd344d29dfb2407bce6a06ec875c3a35 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -21040,6 +21040,7 @@ impl Editor { } multi_buffer::Event::ExcerptsExpanded { ids } => { self.refresh_inlay_hints(InlayHintRefreshReason::NewLinesShown, cx); + self.refresh_document_highlights(cx); cx.emit(EditorEvent::ExcerptsExpanded { ids: ids.clone() }) } multi_buffer::Event::Reparsed(buffer_id) => {