From 7d365ef26c5992007756d8b4a20686b7d0e1dc37 Mon Sep 17 00:00:00 2001 From: Tim Vermeulen Date: Thu, 16 Apr 2026 16:17:39 +0200 Subject: [PATCH] editor: Defer rendering the git blame popover until after the markdown is parsed (#52231) Fixes this single-frame glitch that sometimes occurs when the git blame popover is rendered before the markdown has been parsed. https://github.com/user-attachments/assets/d5a322c3-e46f-4597-a10f-a676da57daa7 ## Self-Review Checklist - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - Fixed a visual glitch where the git blame popover could briefly appear empty while its markdown content was being parsed --- crates/editor/src/element.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index e2b8a49f9eaa23340895779724660c3b46fdc0af..392a67bb0d495c3d49063bd4aa6ec87ea6bfd610 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -8696,6 +8696,10 @@ fn render_blame_entry_popover( window: &mut Window, cx: &mut App, ) -> Option { + if markdown.read(cx).is_parsing() { + return None; + } + let renderer = cx.global::().0.clone(); let blame = blame.read(cx); let repository = blame.repository(cx, buffer)?;