protected static MethodInfo createNotificationInfo(Method method, String segment, JsonNotification jsonNotification) { MethodInfo methodInfo = createMethodInfo(method, jsonNotification.useSegment(), segment, jsonNotification.value()); methodInfo.isNotification = true; return methodInfo; }
/** * The progress report notification is sent from a server to be handled by the * client. */ @JsonNotification("language/progressReport") void sendProgressReport(ProgressReport report);
protected static MethodInfo createRequestInfo(Method method, String segment, JsonRequest jsonRequest) { return createMethodInfo(method, jsonRequest.useSegment(), segment, jsonRequest.value()); }
/** * The shutdown request is sent from the client to the server. It asks the * server to shutdown, but to not exit (otherwise the response might not be * delivered correctly to the client). There is a separate exit notification * that asks the server to exit. */ @JsonRequest CompletableFuture<Object> shutdown();
/** * Provides access to the workspace services. */ @JsonDelegate WorkspaceService getWorkspaceService();
/** * Wraps a given object with service annotations behind an {@link Endpoint} interface. * * @return the wrapped service endpoint */ public static Endpoint toEndpoint(Object serviceObject) { return new GenericEndpoint(serviceObject); }
/** * The show message notification is sent from a server to a client to ask * the client to display a particular message in the user interface. */ @JsonNotification("language/status") void sendStatusReport(StatusReport report);
protected static MethodInfo createNotificationInfo(Method method, String segment, JsonNotification jsonNotification) { MethodInfo methodInfo = createMethodInfo(method, jsonNotification.useSegment(), segment, jsonNotification.value()); methodInfo.isNotification = true; return methodInfo; }
protected static MethodInfo createRequestInfo(Method method, String segment, JsonRequest jsonRequest) { return createMethodInfo(method, jsonRequest.useSegment(), segment, jsonRequest.value()); }
/** * The actionable notification is sent from a server to a client to ask the * client to display a particular message in the user interface, and possible * commands to execute. The commands must be implemented on the client side. */ @JsonNotification("language/actionableNotification") void sendActionableNotification(ActionableNotification notification);
/** * Request a project configuration update * @param documentUri the document from which the project configuration will be updated */ @JsonNotification void projectConfigurationUpdate(TextDocumentIdentifier documentUri);
/** * The workspace/didChangeWorkspaceFolders notification is sent from the client * to the server to inform the server about workspace folder configuration changes. * The notification is sent by default if both ServerCapabilities/workspaceFolders * and ClientCapabilities/workspace/workspaceFolders are true; or if the server has * registered to receive this notification it first. */ @JsonNotification default void didChangeWorkspaceFolders(DidChangeWorkspaceFoldersParams params) {}
/** * Diagnostics notifications are sent from the server to the client to * signal results of validation runs. */ @JsonNotification("textDocument/publishDiagnostics") void publishDiagnostics(PublishDiagnosticsParams diagnostics);
/** * A notification to ask the server to exit its process. */ @JsonNotification void exit();
/** * The document open notification is sent from the client to the server to * signal newly opened text documents. The document's truth is now managed * by the client and the server must not try to read the document's truth * using the document's uri. * * Registration Options: TextDocumentRegistrationOptions */ @JsonNotification void didOpen(DidOpenTextDocumentParams params);
/** * The document will save notification is sent from the client to the server before the document is actually saved. * * Registration Options: TextDocumentRegistrationOptions */ @JsonNotification default void willSave(WillSaveTextDocumentParams params) {}
/** * The show message notification is sent from a server to a client to ask * the client to display a particular message in the user interface. */ @JsonNotification("window/showMessage") void showMessage(MessageParams messageParams);
/** * The document save notification is sent from the client to the server when * the document for saved in the client. * * Registration Options: TextDocumentSaveRegistrationOptions */ @JsonNotification void didSave(DidSaveTextDocumentParams params);
/** * The log message notification is send from the server to the client to ask * the client to log a particular message. */ @JsonNotification("window/logMessage") void logMessage(MessageParams message);
/** * The watched files notification is sent from the client to the server when * the client detects changes to file watched by the language client. */ @JsonNotification void didChangeWatchedFiles(DidChangeWatchedFilesParams params);