mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-33908 JSON Schema completion: show types in completion item descriptions when no description is avaiable
This commit is contained in:
@@ -308,6 +308,12 @@ public class JsonSchemaCompletionContributor extends CompletionContributor {
|
||||
if (!StringUtil.isEmptyOrSpaces(typeText)) {
|
||||
builder = builder.withTypeText(StringUtil.removeHtmlTags(typeText), true);
|
||||
}
|
||||
else {
|
||||
JsonSchemaType type = jsonSchemaObject.getType();
|
||||
if (type != null) {
|
||||
builder = builder.withTypeText(type.getDescription(), true);
|
||||
}
|
||||
}
|
||||
|
||||
builder = builder.withIcon(getIcon(jsonSchemaObject.getType()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user