org.eclipse.lsp4j.jsonrpc.services.JsonNotification Java Examples
The following examples show how to use
org.eclipse.lsp4j.jsonrpc.services.JsonNotification.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GenericEndpointTest.java From lsp4j with Eclipse Public License 2.0 | 6 votes |
protected void testZeroParams(Object params, 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() { @JsonNotification public void myNotification() { } }); endpoint.notify("myNotification", params); if (predicate != null) { logMessages.await(r -> Level.WARNING == r.getLevel() && predicate.test(r.getMessage())); } } finally { if (logMessages != null) { logMessages.unregister(); } } }
Example #2
Source File: ExecuteCommandProposedClient.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 4 votes |
@JsonNotification("workspace/notify") void sendNotification(ExecuteCommandParams params);
Example #3
Source File: GLSPServer.java From graphical-lsp with Eclipse Public License 2.0 | 4 votes |
@JsonNotification("process") void process(ActionMessage message);
Example #4
Source File: LSPClient.java From MSPaintIDE with MIT License | 4 votes |
@JsonNotification("java/didChangeWorkspaceFolders") public void didChangeWorkspaceFolders(Object object) { LOGGER.info("[didChangeWorkspaceFolders] {}", object); }
Example #5
Source File: BuildClient.java From build-server-protocol with Apache License 2.0 | 4 votes |
@JsonNotification("build/publishDiagnostics") void onBuildPublishDiagnostics(PublishDiagnosticsParams params);
Example #6
Source File: BuildClient.java From build-server-protocol with Apache License 2.0 | 4 votes |
@JsonNotification("build/taskFinish") void onBuildTaskFinish(TaskFinishParams params);
Example #7
Source File: BuildClient.java From build-server-protocol with Apache License 2.0 | 4 votes |
@JsonNotification("build/taskProgress") void onBuildTaskProgress(TaskProgressParams params);
Example #8
Source File: BuildClient.java From build-server-protocol with Apache License 2.0 | 4 votes |
@JsonNotification("build/taskStart") void onBuildTaskStart(TaskStartParams params);
Example #9
Source File: BuildClient.java From build-server-protocol with Apache License 2.0 | 4 votes |
@JsonNotification("buildTarget/didChange") void onBuildTargetDidChange(DidChangeBuildTarget params);
Example #10
Source File: ActionScriptLanguageClient.java From vscode-as3mxml with Apache License 2.0 | 4 votes |
@JsonNotification("as3mxml/logCompilerShellOutput") void logCompilerShellOutput(String message);
Example #11
Source File: ActionScriptServices.java From vscode-as3mxml with Apache License 2.0 | 4 votes |
@JsonNotification("$/setTraceNotification") public void setTraceNotification(Object params) { //this may be ignored. see: eclipse/lsp4j#22 }
Example #12
Source File: TestLangLSPExtension.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@JsonNotification void buildHappened(BuildNotification notification);
Example #13
Source File: MockConnectionTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification("client/notify") void notify(String arg);
Example #14
Source File: MockConnectionTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification("server/notify") void notify(String arg);
Example #15
Source File: DebugIntegrationTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification void myNotification();
Example #16
Source File: IDebugProtocolClient.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * The event indicates that the debuggee has exited and returns its exit code. */ @JsonNotification default void exited(ExitedEventArguments args) { }
Example #17
Source File: IDebugProtocolClient.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * The event indicates that a thread has started or exited. */ @JsonNotification default void thread(ThreadEventArguments args) { }
Example #18
Source File: IDebugProtocolClient.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * The event indicates that the target has produced some output. */ @JsonNotification default void output(OutputEventArguments args) { }
Example #19
Source File: IDebugProtocolClient.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * The event indicates that some information about a breakpoint has changed. */ @JsonNotification default void breakpoint(BreakpointEventArguments args) { }
Example #20
Source File: IDebugProtocolClient.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * The event indicates that some information about a module has changed. */ @JsonNotification default void module(ModuleEventArguments args) { }
Example #21
Source File: IntegrationTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification void myNotification();
Example #22
Source File: LauncherTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification public void say(Param p);
Example #23
Source File: EndpointsTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification public void myNotification(String someArg);
Example #24
Source File: EndpointsTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification("hubba") public void myNotification(String someArg);
Example #25
Source File: EndpointsTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification public void myNotification2(String someArg, Integer someArg2);
Example #26
Source File: EndpointsTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification("hubba") public void myNotification(String someArg, Integer someArg2);
Example #27
Source File: EndpointsTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification @Override void accept(String message);
Example #28
Source File: GenericEndpointTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification public void barrr() { calls++; }
Example #29
Source File: GenericEndpointTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification public void myNotification();
Example #30
Source File: GenericEndpointTest.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
@JsonNotification public void myNotification();