Skip to content

Commit 5b86f27

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" (#211)
1 parent b9a6b73 commit 5b86f27

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

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

686-
Disposer.register(this, fileEditor);
687-
688686
final ContentImpl content = new ContentImpl(fileEditor.getComponent(), "Query result", true);
689687
content.setCloseable(false);
690688
toolWindow.getContentManager().addContent(content);

0 commit comments

Comments
 (0)