lost during merge commit: Highlight invisible references like unresolved
This commit is contained in:
@@ -180,6 +180,10 @@ public class JetPsiChecker implements Annotator {
|
|||||||
for (TextRange textRange : textRanges) {
|
for (TextRange textRange : textRanges) {
|
||||||
Annotation errorAnnotation = holder.createErrorAnnotation(textRange, getMessage(diagnostic));
|
Annotation errorAnnotation = holder.createErrorAnnotation(textRange, getMessage(diagnostic));
|
||||||
registerQuickFix(errorAnnotation, diagnostic);
|
registerQuickFix(errorAnnotation, diagnostic);
|
||||||
|
|
||||||
|
if (diagnostic.getFactory() == Errors.INVISIBLE_REFERENCE) {
|
||||||
|
errorAnnotation.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (diagnostic.getSeverity() == Severity.WARNING) {
|
else if (diagnostic.getSeverity() == Severity.WARNING) {
|
||||||
|
|||||||
Reference in New Issue
Block a user