1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2024-10-17 21:42:49 +02:00

Compare commits

..

No commits in common. "85d85a39115ee7ad7083cf76195eb237f7ef15ec" and "2eb185aa9dc25d7878ea762f34046cb0703dd9e5" have entirely different histories.

3 changed files with 15 additions and 12 deletions

15
.gitignore vendored
View File

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

View File

@ -3,8 +3,8 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.21"
id("org.jetbrains.intellij") version "1.7.0"
kotlin("jvm") version "1.6.10"
id("org.jetbrains.intellij") version "1.6.0"
}
group = "com.chylex.intellij.inspectionlens"
@ -15,12 +15,12 @@ repositories {
}
intellij {
version.set("2022.2")
version.set("2022.1")
updateSinceUntilBuild.set(false)
}
tasks.patchPluginXml {
sinceBuild.set("222")
sinceBuild.set("213")
}
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 < MINIMUM_SEVERITY) {
if (info == null || info.severity.myVal <= HighlightSeverity.INFORMATION.myVal) {
return
}
@ -60,8 +60,6 @@ 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].
*