antlr / intellij-plugin-v4

An IntelliJ plugin for ANTLR v4
https://plugins.jetbrains.com/plugin/7358-antlr-v4
BSD 3-Clause "New" or "Revised" License
468 stars 104 forks source link

Plugin doesn't reassign extension if it has already been associated with text #569

Open yasamprom opened 2 years ago

yasamprom commented 2 years ago

If g4 is already associated with text files and plugin is installed after that it doesn't reassign *.g4 with ANTLR language

parrt commented 2 years ago

thanks. saw that too. I wonder how g4 gets associated with text.

yasamprom commented 2 years ago

Solution: Add [this code](https://github.com/objectionary/eo-intellij-plugin/blob/master/src/main/java/org/eolang/jetbrains/EoPluginController.java#:~:text=final%20FileTypeManager%20fileTypeManager,()%2C%20runnableAssociate) in your PluginController