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!

0
3 comments

Already found out, something like this:

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

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

0

Please sign in to leave a comment.