use of com.intellij.codeInsight.completion.CompletionContributor in project intellij-community by JetBrains.
the class JsonSchemaCompletionContributor method fillCompletionVariants.
@Override
public void fillCompletionVariants(@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) {
Project project = parameters.getEditor().getProject();
assert project != null;
JsonSchemaService service = JsonSchemaService.Impl.get(project);
assert service != null;
CompletionContributor delegate = service.getCompletionContributor(parameters.getOriginalFile().getVirtualFile());
if (delegate != null) {
delegate.fillCompletionVariants(parameters, result);
}
}
Aggregations