From d2381096fb50b438a25d40eae446378504e9ffcc Mon Sep 17 00:00:00 2001 From: Muu Date: Sun, 15 Nov 2026 08:46:50 +0800 Subject: [PATCH] fix(editor): re-render inheritance markers when files change (#3468) A Python file added or removed invalidated the cached inheritance graph and markers, but nothing redrew the open documents, so a tooltip kept naming a deleted class. The file-change handler now refreshes the live marker plugins, as a settling server already did. Co-authored-by: muutot <92625353+muutot@users.noreply.github.com> --- src/editor/navigation/implementationGutter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor/navigation/implementationGutter.ts b/src/editor/navigation/implementationGutter.ts index 70121bf69..9faffb7ed 100644 --- a/src/editor/navigation/implementationGutter.ts +++ b/src/editor/navigation/implementationGutter.ts @@ -111,6 +111,9 @@ function watchChanges() { if (!affectsMarkers([...e.created, ...e.modified, ...e.removed])) return; changes++; forgetInheritanceGraph(); + // A class added, moved or removed changes the targets and tooltips of the open + // documents: re-render them instead of waiting for an edit or a settling server. + for (const plugin of live) plugin.refreshSoon(); }); // Answers (outlines too) given while a server was starting or indexing may be incomplete. onServerSettled(() => {