1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2024-11-25 16:42:54 +01:00

Compare commits

...

3 Commits

3 changed files with 12 additions and 15 deletions

15
.gitignore vendored
View File

@ -1,13 +1,8 @@
/.idea/dictionaries
/.idea/inspectionProfiles
/.idea/libraries
/.idea/modules
/.idea/*.iml
/.idea/.name
/.idea/jarRepositories.xml
/.idea/misc.xml
/.idea/modules.xml
/.idea/*
!/.idea/compiler.xml
!/.idea/encodings.xml
!/.idea/gradle.xml
!/.idea/vcs.xml
/.gradle/
/build/

View File

@ -3,8 +3,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
id("org.jetbrains.intellij") version "1.6.0"
kotlin("jvm") version "1.6.21"
id("org.jetbrains.intellij") version "1.7.0"
}
group = "com.chylex.intellij.inspectionlens"
@ -15,12 +15,12 @@ repositories {
}
intellij {
version.set("2022.1")
version.set("2022.2")
updateSinceUntilBuild.set(false)
}
tasks.patchPluginXml {
sinceBuild.set("213")
sinceBuild.set("222")
}
tasks.buildSearchableOptions {

View File

@ -37,7 +37,7 @@ class LensMarkupModelListener private constructor(editor: Editor) : MarkupModelL
}
val info = HighlightInfo.fromRangeHighlighter(highlighter)
if (info == null || info.severity.myVal <= HighlightSeverity.INFORMATION.myVal) {
if (info == null || info.severity.myVal < MINIMUM_SEVERITY) {
return
}
@ -60,6 +60,8 @@ class LensMarkupModelListener private constructor(editor: Editor) : MarkupModelL
}
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].
*