editor: Refresh document highlights when expanding excerpts (#40715)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-10-20 16:19:57 +00:00
committed by GitHub
parent ea5f3e6086
commit 7aa0626098
+1
View File
@@ -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) => {