Skip to content

Commit 1f36fde

Browse files
Avoid closing preview panel when file switching (#520)
* 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. Signed-off-by: Olivier Cavadenti <[email protected]> * re-add hidePreview Signed-off-by: Olivier Cavadenti <[email protected]>
1 parent b316cef commit 1f36fde

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ public void currentEditorFileChangedEvent(VirtualFile oldFile, VirtualFile newFi
285285
return;
286286
}
287287
if ( !newFile.getName().endsWith(".g4") ) {
288-
hidePreview();
289288
return;
290289
}
291290

0 commit comments

Comments
 (0)