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>
This commit is contained in:
Muu
2026-11-15 08:46:50 +08:00
committed by GitHub
co-authored by muutot
parent 2c70c12bf2
commit d2381096fb
@@ -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(() => {