diff --git a/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java b/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java index 0b71381f5..c994a7ed0 100644 --- a/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java +++ b/src/main/java/org/sonarlint/intellij/ui/CurrentFilePanel.java @@ -177,13 +177,14 @@ public void update(@Nullable VirtualFile file, @Nullable Collection i populateSubTree(tree, treeBuilder, Map.of(file, newIssues)); populateSubTree(oldTree, oldTreeBuilder, Map.of(file, oldIssues)); oldTree.setVisible(true); + updateIcon(file, newIssues); } else { populateSubTree(tree, treeBuilder, Map.of(file, this.currentIssues)); populateSubTree(oldTree, oldTreeBuilder, Collections.emptyMap()); oldTree.setVisible(false); + updateIcon(file, this.currentIssues); } expandTree(); - updateIcon(file, this.currentIssues); } private static void populateSubTree(Tree tree, IssueTreeModelBuilder treeBuilder, Map> issues) {