mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-38802
This commit is contained in:
@@ -37,6 +37,7 @@ public abstract class AbstractTreeStructure {
|
||||
|
||||
@NotNull
|
||||
public static ActionCallback asyncCommitDocuments(@NotNull Project project) {
|
||||
if (project.isDisposed()) return new ActionCallback.Done();
|
||||
PsiDocumentManager documentManager = PsiDocumentManager.getInstance(project);
|
||||
if (!documentManager.hasUncommitedDocuments()) {
|
||||
return new ActionCallback.Done();
|
||||
|
||||
Reference in New Issue
Block a user