Skip to content

Commit 5aa8eb1

Browse files
Avoid closing preview panel when file switching
When we switch files with ANTLR4 preview panel opened, it's closed. Now with this commit, we never close preview panel. Each grammar have his preview conserved.
1 parent 252ac62 commit 5aa8eb1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/org/antlr/intellij/plugin/ANTLRv4PluginController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,9 @@ public void currentEditorFileChangedEvent(VirtualFile oldFile, VirtualFile newFi
278278
}
279279
if ( newFile.getName().endsWith(".g") ) {
280280
LOG.info("currentEditorFileChangedEvent ANTLR 4 cannot handle .g files, only .g4");
281-
hidePreview();
282281
return;
283282
}
284283
if ( !newFile.getName().endsWith(".g4") ) {
285-
hidePreview();
286284
return;
287285
}
288286

0 commit comments

Comments
 (0)