Skip to content

Commit 008078e

Browse files
re-add hidePreview
Signed-off-by: Olivier Cavadenti <[email protected]>
1 parent 4175381 commit 008078e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ 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();
281282
return;
282283
}
283284
if ( !newFile.getName().endsWith(".g4") ) {

0 commit comments

Comments
 (0)