本文整理汇总了Java中org.eclipse.lsp4j.jsonrpc.services.JsonRequest类的典型用法代码示例。如果您正苦于以下问题:Java JsonRequest类的具体用法?Java JsonRequest怎么用?Java JsonRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonRequest类属于org.eclipse.lsp4j.jsonrpc.services包,在下文中一共展示了JsonRequest类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: testSingleParams
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
protected void testSingleParams(Object params, String expectedString, Predicate<String> predicate) throws Exception {
LogMessageAccumulator logMessages = null;
try {
if (predicate != null) {
logMessages = new LogMessageAccumulator();
logMessages.registerTo(GenericEndpoint.class);
}
GenericEndpoint endpoint = new GenericEndpoint(new Object() {
@JsonRequest
public CompletableFuture<String> getStringValue(String stringValue) {
return CompletableFuture.completedFuture(stringValue);
}
});
Assert.assertEquals(expectedString, endpoint.request("getStringValue", params).get());
if (predicate != null) {
logMessages.await(r -> Level.WARNING == r.getLevel() && predicate.test(r.getMessage()));
}
} finally {
if (logMessages != null) {
logMessages.unregister();
}
}
}
开发者ID:eclipse,项目名称:lsp4j,代码行数:28,代码来源:GenericEndpointTest.java
示例2: initialize
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<Capabilities> initialize(InitializeRequestArguments param);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例3: disconnect
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<DisconnectResponse> disconnect(DisconnectArguments disconnectArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例4: setBreakpoints
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<SetBreakpointsResponse.Body> setBreakpoints(SetBreakpointsArguments setBreakpointsArgs);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例5: setFunctionBreakpoints
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<SetFunctionBreakpointsResponse.Body> setFunctionBreakpoints(
SetFunctionBreakpointsArguments setFunctionBreakpointsArgs);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:4,代码来源:IDebugProtocolServer.java
示例6: launch
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<Void> launch(Either<Map<String, Object>, LaunchRequestArguments> launchArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例7: configurationDone
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<Void> configurationDone();
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例8: threads
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<ThreadsResponse.Body> threads();
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例9: variables
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<VariablesResponse.Body> variables(VariablesArguments variablesArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例10: next
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<Void> next(NextArguments nextArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例11: stepIn
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<Void> stepIn(StepInArguments stepInArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例12: stepOut
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<Void> stepOut(StepOutArguments stepOutArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例13:
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest(value = "continue")
CompletableFuture<ContinueResponse.Body> continue_(ContinueArguments arguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例14: stackTrace
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<StackTraceResponse.Body> stackTrace(StackTraceArguments stackTraceArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例15: scopes
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<ScopesResponse.Body> scopes(ScopesArguments scopesArguments);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:IDebugProtocolServer.java
示例16: askServer
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<MyParam> askServer(MyParam param);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:DebugIntegrationTest.java
示例17: askClient
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
@JsonRequest
CompletableFuture<MyParam> askClient(MyParam param);
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:3,代码来源:DebugIntegrationTest.java
示例18: applyEdit
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
/**
* The workspace/applyEdit request is sent from the server to the client to modify resource on the client side.
*/
@JsonRequest("workspace/applyEdit")
default CompletableFuture<ApplyWorkspaceEditResponse> applyEdit(ApplyWorkspaceEditParams params) {
throw new UnsupportedOperationException();
}
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:8,代码来源:LanguageClient.java
示例19: unregisterCapability
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
/**
* The client/unregisterCapability request is sent from the server to the client
* to unregister a previously register capability.
*/
@JsonRequest("client/unregisterCapability")
default CompletableFuture<Void> unregisterCapability(UnregistrationParams params) {
throw new UnsupportedOperationException();
}
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:9,代码来源:LanguageClient.java
示例20: documentLinkResolve
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest; //导入依赖的package包/类
/**
* The document link resolve request is sent from the client to the server to resolve the target of a given document link.
*/
@JsonRequest(value="documentLink/resolve", useSegment = false)
default CompletableFuture<DocumentLink> documentLinkResolve(DocumentLink params) {
throw new UnsupportedOperationException();
}
开发者ID:smarr,项目名称:SOMns-vscode,代码行数:8,代码来源:TextDocumentService.java
注:本文中的org.eclipse.lsp4j.jsonrpc.services.JsonRequest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论