1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2024-10-18 06:42:47 +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/dictionaries
!/.idea/compiler.xml /.idea/inspectionProfiles
!/.idea/encodings.xml /.idea/libraries
!/.idea/gradle.xml /.idea/modules
!/.idea/vcs.xml
/.idea/*.iml
/.idea/.name
/.idea/jarRepositories.xml
/.idea/misc.xml
/.idea/modules.xml
/.gradle/ /.gradle/
/build/ /build/

View File

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

View File

@ -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 < MINIMUM_SEVERITY) { if (info == null || info.severity.myVal <= HighlightSeverity.INFORMATION.myVal) {
return return
} }
@ -60,8 +60,6 @@ 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].
* *