What replaces the functionality of com.intellij.psi.impl.JavaCodeBlockModificationListener ?
Answered
This looks like it was eliminated in 2019--the base class is deprecated in 2019.2 and gone in 2019.3
It's hard for me to track what (if anything) replaced this functionality, because the deprecation notice says only that I should "@see" a symbol which is also deprecated.
So I'm hoping someone knows how/if code block modifications are detected and handled.
I'm carrying around an equivalent (modified) file for my language plugin, and I need to eliminate it in favor of the right way to do this.
Please sign in to leave a comment.
The split between Java/OutOfCode was removed completely. You can use com.intellij.psi.util.PsiModificationTracker / com.intellij.psi.util.PsiModificationTracker#MODIFICATION_COUNT directly.
If you really want to implement your own code block modification tracker, please make sure to read warnings in com.intellij.psi.PsiTreeChangeEvent JavaDoc first.