Skip to content

Commit 3efce8a

Browse files
committed
reload jaeger and dashboard
1 parent 500f579 commit 3efce8a

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/main/java/org/digma/intellij/plugin/dashboard/DashboardService.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ public void reload() {
130130
}
131131
});
132132

133-
files.forEach(file -> FileEditorManager.getInstance(project).closeFile(file));
133+
134+
files.forEach(virtualFile -> {
135+
if (virtualFile instanceof DashboardVirtualFile dashboardVirtualFile) {
136+
dashboardVirtualFile.setValid(false);
137+
FileEditorManager.getInstance(project).closeFile(dashboardVirtualFile);
138+
}
139+
});
134140

135141
newFiles.forEach(file -> FileEditorManager.getInstance(project).openFile(file, true, true));
136142
}

src/main/java/org/digma/intellij/plugin/jaegerui/JaegerUIService.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,12 @@ public void reload() {
263263
}
264264
});
265265

266-
files.forEach(file -> FileEditorManager.getInstance(project).closeFile(file));
266+
files.forEach(virtualFile -> {
267+
if (virtualFile instanceof JaegerUIVirtualFile jaegerUIVirtualFile) {
268+
jaegerUIVirtualFile.setValid(false);
269+
FileEditorManager.getInstance(project).closeFile(jaegerUIVirtualFile);
270+
}
271+
});
267272

268273
newFiles.forEach(file -> FileEditorManager.getInstance(project).openFile(file, true, true));
269274
}

0 commit comments

Comments
 (0)