Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove macro registration hack (#499)
In old versions of IntelliJ platform it was only possible to register macros of custom names. The only way to provide custom macro was to override one of the existing macros. We've been overriding `FileRelativePath` macro. Unfortunately, since version 201.x of IntelliJ platform the hack does not work, because the data structure to keep the macros has been changed from a HashMap to a List. This means, the entries are not overriden, but appended to the end of the list. MacroManager looks up only for the first ocurrence of the name, so the one in the end of the list will never be found if the name is not unique. The change was done in this commit JetBrains/intellij-community@6183806 Luckily, the hack is not needed since JetBrains/intellij-community@fdf6dbc. This means, we can use any custom name for the macro
- Loading branch information