Skip to content

Commit ba9a74c

Browse files
committed
Mark unused parameters as unused too
1 parent fb2c4f5 commit ba9a74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/kotlin/org/javacs/kt/diagnostic/ConvertDiagnostic.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ fun convertDiagnostic(diagnostic: KotlinDiagnostic): List<Pair<URI, LangServerDi
2626
val factoryName = diagnostic.factory.name
2727
tags = mutableListOf<DiagnosticTag>()
2828

29-
if ("UNUSED_VARIABLE" in factoryName) tags.add(DiagnosticTag.Unnecessary)
30-
if ("DEPRECATION" in factoryName) tags.add(DiagnosticTag.Deprecated)
29+
if ("UNUSED_" in factoryName) tags.add(DiagnosticTag.Unnecessary)
30+
if ("DEPRECATION" in factoryName) tags.add(DiagnosticTag.Deprecated)
3131
}
3232
Pair(uri, d)
3333
}

0 commit comments

Comments
 (0)