From aa568a3ceba0f35ed3f80eadd6162ecb09a8b45c Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Thu, 5 Apr 2012 18:33:01 +0400 Subject: [PATCH] lost during merge commit: Highlight invisible references like unresolved --- .../org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java b/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java index 937b121a7ef..27fab5d3a42 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/JetPsiChecker.java @@ -180,6 +180,10 @@ public class JetPsiChecker implements Annotator { for (TextRange textRange : textRanges) { Annotation errorAnnotation = holder.createErrorAnnotation(textRange, getMessage(diagnostic)); registerQuickFix(errorAnnotation, diagnostic); + + if (diagnostic.getFactory() == Errors.INVISIBLE_REFERENCE) { + errorAnnotation.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL); + } } } else if (diagnostic.getSeverity() == Severity.WARNING) {