Hide gutter in diff
已回答
Hi,
I'm wanting to hide a line marker / gutter icon when the diff window is open. Is there a way inside LineMarkerProvider to find out if the element passed into getLineMarkerInfo is from a diff window ?
请先登录再写评论。
You can use "rangeHighlighter.setEditorFilter(MarkupEditorFilterFactory.createIsNotDiffFilter());".
Or directly check for "com.intellij.openapi.diff.impl.DiffUtil#isDiffEditor(Editor)".
Thanks, I ended up creating a subclass of LineMarkerInfo that overrides getEditorFilter to return the MarkupEditorFilterFactory.createIsNotDiffFilter