Does Inlay Renderer work with SSH/Gateway?
Answered
I'm trying to use an inlay renderer to show some text, and I'm using the `paint` method to add some text at the end of the line. This works perfectly on an IntelliJ that's running locally on my personal machine, but as soon as I use JetBrain's SSH, the render doesn't show.
Please sign in to leave a comment.
Hi,
Could you please clarify your use case? What API do you use exactly? What is the use case? What exactly do you render? Did you try using Declarative Inlay Hints Provider?
I would like to add some ghost text at the end of a line. I have seen the
InlineCompletionProvideras suggested in this thread (https://intellij-support.jetbrains.com/hc/en-us/community/posts/12679859576082-Do-InlayHints-work-with-Gateway), but we want to maintain maximum support over older IDEs - which makes the suggested solution not usable. I am looking to support 2022.3+.I am using the
EditorCustomElementRendererinterface to create a renderer, and using theeditor.inlayModelwith the render.editor.inlayModel.addInlineElement(offset, true, renderer).I have noticed that the renderer does not show in Gateway when the plugin is running on the host, even though it appears fine on the local version.
Unfortunately, it is not supported. This renderer is Swing-specific and it is hard to support UI-specific code in the remote context.