Java源码示例:org.eclipse.lsp4j.ConfigurationParams

示例1
@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;
}
 
示例2
@Override
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
    return LanguageClient.super.configuration(configurationParams);
}
 
示例3
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
	return noImpl3.configuration(configurationParams);
}
 
示例4
/**
 * 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();
}