mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-18 16:08:55 +00:00
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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user