类org.eclipse.lsp4j.ConfigurationParams源码实例Demo

下面列出了怎么用org.eclipse.lsp4j.ConfigurationParams的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: netbeans   文件: LanguageClientImpl.java
@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 项目: lsp4intellij   文件: DefaultLanguageClient.java
@Override
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
    return LanguageClient.super.configuration(configurationParams);
}
 
源代码3 项目: xtext-core   文件: CommandRegistryTest.java
public CompletableFuture<List<Object>> configuration(ConfigurationParams configurationParams) {
	return noImpl3.configuration(configurationParams);
}
 
源代码4 项目: lsp4j   文件: LanguageClient.java
/**
 * 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();
}
 
 类所在包
 类方法
 同包方法