1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2025-05-13 08:34:09 +02:00

Fix not showing typo inspections after changing minimum severity level

This commit is contained in:
chylex 2022-08-10 07:09:48 +02:00
parent 55b71b982b
commit e3ca432e26
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -53,7 +53,7 @@ class LensMarkupModelListener private constructor(editor: Editor) : MarkupModelL
}
companion object {
private val MINIMUM_SEVERITY = HighlightSeverity.DEFAULT_SEVERITIES.toList().minusElement(HighlightSeverity.INFORMATION).minOf(HighlightSeverity::myVal)
private val MINIMUM_SEVERITY = HighlightSeverity.TEXT_ATTRIBUTES.myVal + 1
private inline fun runWithHighlighterIfValid(highlighter: RangeHighlighter, actionForImmediate: (HighlighterWithInfo) -> Unit, actionForAsync: (HighlighterWithInfo.Async) -> Unit) {
if (!highlighter.isValid) {