Remove element from Editor's InlayModel

已回答

Hi!

Is there a way to remove all added block elements from 

com.intellij.openapi.editor.impl.InlayModelImpl

?

 

Thanks!

0

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

请先登录再写评论。