Remove element from Editor's InlayModel

Answered

Hi!

Is there a way to remove all added block elements from 

com.intellij.openapi.editor.impl.InlayModelImpl

?

 

Thanks!

3 comments
Comment actions Permalink

Already found out, something like this:

inlay.getBlockElementsInRange(0, editor.getDocument().getTextLength(), LabelRenderer.class)
.forEach(Disposer::dispose);
0
Comment actions Permalink

Exactly, but don't work against InlayModelImpl, only InlayModel :)

0
Comment actions Permalink

Sure, thanks!

0

Please sign in to leave a comment.