下面列出了怎么用org.eclipse.lsp4j.ConfigurationParams的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
CompletableFuture<List<Object>> result = new CompletableFuture<>();
WORKER.post(() -> {
List<Object> outcome = new ArrayList<>();
for (ConfigurationItem ci : configurationParams.getItems()) {
outcome.add(null);
}
result.complete(outcome);
});
return result;
}
@Override
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
return LanguageClient.super.configuration(configurationParams);
}
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
return noImpl3.configuration(configurationParams);
}
/**
* The workspace/configuration request is sent from the server to the client to fetch
* configuration settings from the client. The request can fetch n configuration settings
* in one roundtrip. The order of the returned configuration settings correspond to the
* order of the passed ConfigurationItems (e.g. the first item in the response is the
* result for the first configuration item in the params).
*/
@JsonRequest("workspace/configuration")
default CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
throw new UnsupportedOperationException();
}