mirror of
https://github.com/chylex/IntelliJ-Inspection-Lens.git
synced 2024-11-25 07:42:58 +01:00
Compare commits
3 Commits
2eb185aa9d
...
85d85a3911
Author | SHA1 | Date | |
---|---|---|---|
85d85a3911 | |||
20967f53d5 | |||
beca5c89ac |
15
.gitignore
vendored
15
.gitignore
vendored
@ -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/
|
||||
|
@ -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 {
|
||||
|
@ -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].
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user