Skip to content

Commit 72857fd

Browse files
committed
Removed unnecessary Disposer.register of the Query result editor since FileEditorManagerImpl.closeAllFiles also disposes when the project is closed. Fixes "DisposalException: Double release of editor" (#164, #211)
1 parent ebc171a commit 72857fd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/com/intellij/lang/jsgraphql/v1/ide/project/JSGraphQLLanguageUIProjectService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,6 @@ public void mouseClicked(MouseEvent e) {
582582
editorEx.setPermanentHeaderComponent(header);
583583
}
584584

585-
Disposer.register(this, fileEditor);
586-
587585
final ContentImpl content = new ContentImpl(fileEditor.getComponent(), "Query result", true);
588586
content.setCloseable(false);
589587
toolWindow.getContentManager().addContent(content);

0 commit comments

Comments
 (0)