mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[editor] IJPL-164636 Improve error message if soft wraps are updated within disposed project
(cherry picked from commit 28ad7b987b8adbcd214a418ab85aca846a9ca613) IJ-CR-167042 GitOrigin-RevId: 80b91d28f1a134821c08b00e2b5704867b2855bd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1a296eb6a6
commit
bd02fd1fa0
@@ -168,7 +168,10 @@ public final class SoftWrapModelImpl extends InlayModel.SimpleAdapter
|
||||
Document document = editor.getDocument();
|
||||
if (project != null && project.isDisposed()) {
|
||||
// TODO: investigate why it happens leading to IJPL-164636
|
||||
editor.throwDisposalError("Editor " + editor + " is not disposed with project " + project);
|
||||
String isEditorDisposed = editor.isDisposed() ? " (disposed)" : " (not disposed)";
|
||||
editor.throwDisposalError(
|
||||
editor + isEditorDisposed + " tries to update soft wraps while project is already disposed " + project
|
||||
);
|
||||
return false;
|
||||
}
|
||||
if (project != null && PostprocessReformattingAspect.getInstance(project).isDocumentLocked(document)) {
|
||||
|
||||
Reference in New Issue
Block a user