From 495287ea22d3fc6b7b05cb5607a5aba9fab52856 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Tue, 3 Apr 2012 16:20:34 +0400 Subject: [PATCH] Highlight invisible references like unresolved --- .../org/jetbrains/jet/plugin/annotations/JetPsiChecker.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/annotations/JetPsiChecker.java b/idea/src/org/jetbrains/jet/plugin/annotations/JetPsiChecker.java index 952038775c7..da008e95e08 100644 --- a/idea/src/org/jetbrains/jet/plugin/annotations/JetPsiChecker.java +++ b/idea/src/org/jetbrains/jet/plugin/annotations/JetPsiChecker.java @@ -201,6 +201,9 @@ public class JetPsiChecker implements Annotator { for (TextRange textRange : textRanges) { Annotation errorAnnotation = holder.createErrorAnnotation(textRange, getMessage(diagnostic)); registerQuickFix(errorAnnotation, diagnostic); + if (diagnostic.getFactory() == Errors.INVISIBLE_MEMBER) { + errorAnnotation.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL); + } } } else if (diagnostic.getSeverity() == Severity.WARNING) {