fix(Tree): add isDumb() return in ReadAction for not must

This commit is contained in:
林万程
2024-01-23 07:55:09 +08:00
parent c1b52fb777
commit 48969443c9

View File

@@ -63,6 +63,9 @@ public class Tree implements ProjectViewNodeDecorator {
}
DumbService.getInstance(project).runReadActionInSmartMode(() ->
ApplicationManager.getApplication().runReadAction(() -> {
if (DumbService.getInstance(project).isDumb()) {
return;
}
@Nullable String doc = treeDoc(node, project);
addText(data, doc);
}));