mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-25724 Missing completion for current property in package.json
This commit is contained in:
@@ -116,11 +116,12 @@ class JsonBySchemaObjectCompletionContributor extends CompletionContributor {
|
||||
final boolean hasValue = myWalker.isPropertyWithValue(myPosition.getParent().getParent());
|
||||
|
||||
final Collection<String> properties = myWalker.getPropertyNamesOfParentObject(myOriginalPosition);
|
||||
final JsonPropertyAdapter adapter = myWalker.getParentPropertyAdapter(myOriginalPosition);
|
||||
|
||||
JsonSchemaPropertyProcessor.process(new JsonSchemaPropertyProcessor.PropertyProcessor() {
|
||||
@Override
|
||||
public boolean process(String name, JsonSchemaObject schema) {
|
||||
if (properties.contains(name)) {
|
||||
if (properties.contains(name) && (adapter == null || !name.equals(adapter.getName()))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user