Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rkeulv committed Jun 26, 2023
1 parent e983cd4 commit e856915
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ private void tryCreateAnnotation(HaxeReferenceExpression expression) {
if (!components.isEmpty()) {
// operator overload metas don't have "real" references so we skip this check
if (isCompileTimeMeta(expression, HaxeMeta.OP)) return;
expression.putUserData(ANNOTATOR_TRACKER, HighlightSeverity.ERROR);
myHolder.newAnnotation(HighlightSeverity.ERROR, HaxeBundle.message("haxe.unresolved.type"))
.withFix(new HaxeTypeAddImportIntentionAction(expression, components))
.create();
//TODO find a better way to avoid duplicates
if (expression.getUserData(ANNOTATOR_TRACKER) != HighlightSeverity.ERROR) {
expression.putUserData(ANNOTATOR_TRACKER, HighlightSeverity.ERROR);
myHolder.newAnnotation(HighlightSeverity.ERROR, HaxeBundle.message("haxe.unresolved.type"))
.range(expression)
.withFix(new HaxeTypeAddImportIntentionAction(expression, components))
.create();
}
}
}

Expand Down

0 comments on commit e856915

Please sign in to comment.