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

Author SHA1 Message Date
06c81654e8
Add screenshot 2022-08-10 07:26:09 +02:00
c9f59202d9
Add FUNDING.yml 2022-08-10 07:20:28 +02:00
e3ca432e26
Fix not showing typo inspections after changing minimum severity level 2022-08-10 07:09:48 +02:00
4 changed files with 6 additions and 1 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,3 @@
github: chylex
patreon: chylex
ko_fi: chylex

BIN
.github/readme/intellij.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -5,3 +5,5 @@ Simply install the plugin and inspection descriptions will appear on the right s
The plugin is not customizable outside of the ability to disable/enable the plugin without restarting the IDE. If the defaults don't work for you, I would recommend either trying the [Inline Error](https://plugins.jetbrains.com/plugin/17302-inlineerror) plugin which can be customized, or proposing your change in the [issue tracker](https://github.com/chylex/IntelliJ-Inspection-Lens/issues).
Inspired by [Error Lens](https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens) for Visual Studio Code, and [Inline Error](https://plugins.jetbrains.com/plugin/17302-inlineerror) for IntelliJ Platform.
![Inspection Lens Screenshot](https://raw.githubusercontent.com/chylex/IntelliJ-Inspection-Lens/main/.github/readme/intellij.png)

View File

@ -53,7 +53,7 @@ class LensMarkupModelListener private constructor(editor: Editor) : MarkupModelL
}
companion object {
private val MINIMUM_SEVERITY = HighlightSeverity.DEFAULT_SEVERITIES.toList().minusElement(HighlightSeverity.INFORMATION).minOf(HighlightSeverity::myVal)
private val MINIMUM_SEVERITY = HighlightSeverity.TEXT_ATTRIBUTES.myVal + 1
private inline fun runWithHighlighterIfValid(highlighter: RangeHighlighter, actionForImmediate: (HighlighterWithInfo) -> Unit, actionForAsync: (HighlighterWithInfo.Async) -> Unit) {
if (!highlighter.isValid) {