mirror of
https://github.com/chylex/IntelliJ-Inspection-Lens.git
synced 2025-05-31 17:34:13 +02:00
Hide inspections used only for custom text attributes introduced in 2022.2
This commit is contained in:
parent
20967f53d5
commit
85d85a3911
@ -37,7 +37,7 @@ class LensMarkupModelListener private constructor(editor: Editor) : MarkupModelL
|
|||||||
}
|
}
|
||||||
|
|
||||||
val info = HighlightInfo.fromRangeHighlighter(highlighter)
|
val info = HighlightInfo.fromRangeHighlighter(highlighter)
|
||||||
if (info == null || info.severity.myVal <= HighlightSeverity.INFORMATION.myVal) {
|
if (info == null || info.severity.myVal < MINIMUM_SEVERITY) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,6 +60,8 @@ class LensMarkupModelListener private constructor(editor: Editor) : MarkupModelL
|
|||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
private val MINIMUM_SEVERITY = HighlightSeverity.DEFAULT_SEVERITIES.toList().minusElement(HighlightSeverity.INFORMATION).minOf(HighlightSeverity::myVal)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attaches a new [LensMarkupModelListener] to the document model of the provided [TextEditor], and reports all existing inspection highlights to [EditorInlayLensManager].
|
* Attaches a new [LensMarkupModelListener] to the document model of the provided [TextEditor], and reports all existing inspection highlights to [EditorInlayLensManager].
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user