mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[devkit] Theme.json: highlight unresolved keys as warnings, not errors
This commit is contained in:
@@ -29,9 +29,9 @@ public class ThemeAnnotator implements Annotator {
|
||||
if (parentNames.startsWith("*")) return; // anything allowed
|
||||
|
||||
String fullKey = parentNames.isEmpty() ? property.getName() : parentNames + "." + property.getName();
|
||||
holder.createErrorAnnotation(property.getNameElement().getTextRange(),
|
||||
"Unresolved key '" + fullKey + "'")
|
||||
.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL);
|
||||
holder.createWarningAnnotation(property.getNameElement().getTextRange(),
|
||||
"Unresolved key '" + fullKey + "'")
|
||||
.setHighlightType(ProblemHighlightType.WARNING);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user