I've been writing some PostgreSQL functions in Python recently at work through Postgres' excellent
plpython3u extension. Unfortunately PyCharm's handling of this is pretty terrible (see https://youtrack.jetbrains.com/issue/PY-42699). I've never written a Jetbrains plugin before (and my Java is pretty rusty) but this sounds like a relatively simple thing to smooth out. I'd love to write a plugin that:
Injects some global symbols into the context (e.g.
Parses the parameters of the outer
CREATE FUNCTION ... and injects those into the context
Somehow sets the indentation correctly so that PyCharm doesn't keep trying to stupidly indent at the wrong level
I've cloned the JetBrains/intellij-platform-plugin-template plugin and gotten it to build correctly, but now I'm having trouble figuring out where to go next. Can someone help point me in the right direction?