项目:eclipse.jdt.ls
文件:JDTLanguageServer.java
public void unregisterCapability(String id,String method) {
if (registeredCapabilities.remove(id)) {
Unregistration unregistration = new Unregistration(id,method);
UnregistrationParams unregistrationParams = new UnregistrationParams(Collections.singletonList(unregistration));
client.unregisterCapability(unregistrationParams);
}
}
public UnregistrationParams() {
this(new ArrayList<Unregistration>());
}
项目:xtext-core
文件:CommandRegistryTest.java
@Override
public CompletableFuture<Void> unregisterCapability(final UnregistrationParams params) {
final Unregistration unreg = IterableExtensions.<Unregistration>head(params.getUnregisterations());
this.registered.remove(unreg);
return CompletableFuture.<Void>completedFuture(null);
}
public UnregistrationParams() {
this(new ArrayList<Unregistration>());
}