I've created a plugin that displays text beside my Python source code. The display text scrolls in sync with the Python source code, but it gets out of sync in recent versions of PyCharm and IDEA when the inlay hints introduce gaps between lines of source code.
I'm trying to create a matching set of inlays in the display, so the two windows will scroll in sync again, but my collector only gets created when I click in the display window. Can I make the inlays appear as soon as I open the window? Is there a way to tell the InlayHintsPassFactory to create a highlighting pass?
I followed the guidance for creating inlay hints.
You can see my current code here.
Is there a better way to create a large text display in sync with Python source code? It often needs to scroll sideways to see more detail.