mirror of
https://github.com/chylex/IntelliJ-Inspection-Lens.git
synced 2024-11-25 16:42:54 +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/*
|
||||||
/.idea/inspectionProfiles
|
!/.idea/compiler.xml
|
||||||
/.idea/libraries
|
!/.idea/encodings.xml
|
||||||
/.idea/modules
|
!/.idea/gradle.xml
|
||||||
|
!/.idea/vcs.xml
|
||||||
/.idea/*.iml
|
|
||||||
/.idea/.name
|
|
||||||
/.idea/jarRepositories.xml
|
|
||||||
/.idea/misc.xml
|
|
||||||
/.idea/modules.xml
|
|
||||||
|
|
||||||
/.gradle/
|
/.gradle/
|
||||||
/build/
|
/build/
|
||||||
|
@ -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.10"
|
kotlin("jvm") version "1.6.21"
|
||||||
id("org.jetbrains.intellij") version "1.6.0"
|
id("org.jetbrains.intellij") version "1.7.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.chylex.intellij.inspectionlens"
|
group = "com.chylex.intellij.inspectionlens"
|
||||||
@ -15,12 +15,12 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
intellij {
|
intellij {
|
||||||
version.set("2022.1")
|
version.set("2022.2")
|
||||||
updateSinceUntilBuild.set(false)
|
updateSinceUntilBuild.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.patchPluginXml {
|
tasks.patchPluginXml {
|
||||||
sinceBuild.set("213")
|
sinceBuild.set("222")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.buildSearchableOptions {
|
tasks.buildSearchableOptions {
|
||||||
|
@ -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 <= HighlightSeverity.INFORMATION.myVal) {
|
if (info == null || info.severity.myVal < MINIMUM_SEVERITY) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,6 +60,8 @@ 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].
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user