Highlight invisible references like unresolved

This commit is contained in:
Svetlana Isakova
2012-04-03 16:20:34 +04:00
parent a8d6fb98f9
commit 495287ea22
@@ -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) {