Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Refresh document highlights when expanding excerpts (#40715)
Lukas Wirth7aa0626098aa
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 7e633a40e65..18fede90dd3 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) => {