mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-184662 Wrapped validation check in the toString method to the RA
I don't really like this approach because a `toString` method is supposed to be simple and lightweight. But it involves validation check for a file. Probably we should remove `isValid` invocation from it. GitOrigin-RevId: 3f119b5c59f8346df14e764d3bb43c997e62730f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d37674ac5b
commit
919caa3068
+2
-1
@@ -12,6 +12,7 @@ import com.intellij.injected.editor.MarkupModelWindow;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.ActionGroup;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.application.ReadAction;
|
||||
import com.intellij.openapi.editor.*;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsManager;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsScheme;
|
||||
@@ -798,7 +799,7 @@ final class EditorWindowImpl extends UserDataHolderBase implements EditorWindow,
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString() + "[disposed=" + myDisposed + "; valid=" + isValid() + "]";
|
||||
return super.toString() + "[disposed=" + myDisposed + "; valid=" + ReadAction.compute(()->isValid()) + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user