PsiAwareTextEditorProvider.createEditor is never invoked in 2023.2.5?

已回答

My plugin has a custom editor implementation and in my editor provider class it overrides the createEditor method. However, after upgrading to 2023.2.5 it is never invoked, and when I run the plugin in the debugger, I see that the PsiAwareTextEditorProvider.createEditor is also never invoked, instead it invokes createEditorBuilder.  Is it a bug or am I supposed to override this method from now on?

0

I implemented the createEditorBuilder method and now the plugin works with 2023.2.5 but fails to compile with 2023.1.5 (obviously) so I'm wondering if the backwards-compatibility here is broken or there are ways around it.

0

Hi Eugene,

I can see usages of createEditor, so it's hard to say why it is not called in your case. If implementing createEditorBuilder fixes the issue for 2023.2.5, then it seems to be a proper fix. In case the API change is not backward compatible, then the solution is to release multiple plugin versions with the proper since-build/until-build values in plugin.xml.

Please note that PsiAwareTextEditorProvider is not part of the open API, and its compatibility with the older versions is not guaranteed.

0

请先登录再写评论。