Top Description Methods
org.eclipse.lsp4j.services

public Interface LanguageServer

Imports
java.util.concurrent.CompletableFuture, org.eclipse.lsp4j.InitializeParams, .InitializeResult, .InitializedParams, .SetTraceParams, .WorkDoneProgressCancelParams, org.eclipse.lsp4j.jsonrpc.services.JsonDelegate, .JsonNotification, .JsonRequest

Interface for implementations of https://github.com/Microsoft/vscode-languageserver-protocol

Method Summary

Modifier and TypeMethod and Description
public default void
cancelProgress(WorkDoneProgressCancelParams params)

This notification is sent from the client to the server to cancel a progress initiated on the server side.

public void
exit()

A notification to ask the server to exit its process.

public default NotebookDocumentService
getNotebookDocumentService()

Provides access to the notebookDocument services.

public TextDocumentService
getTextDocumentService()

Provides access to the textDocument services.

public WorkspaceService
getWorkspaceService()

Provides access to the workspace services.

public CompletableFuture<InitializeResult>
initialize(InitializeParams params)

The initialize request is sent as the first request from the client to the server.

public default void
initialized(InitializedParams params)

The initialized notification is sent from the client to the server after the client received the result of the initialize request, but before the client is sending any other request or notification to the server.

public default void
initialized()
Deprecated Use initialized(InitializedParams) instead.

public default void
setTrace(SetTraceParams params)

A notification that should be used by the client to modify the trace setting of the server.

public CompletableFuture<Object>
shutdown()

The shutdown request is sent from the client to the server.

Method Detail

cancelProgressback to summary
public default void cancelProgress(WorkDoneProgressCancelParams params)

This notification is sent from the client to the server to cancel a progress initiated on the server side.

Since 3.15.0

Annotations
@JsonNotification:window/workDoneProgress/cancel
exitback to summary
public void exit()

A notification to ask the server to exit its process.

Annotations
@JsonNotification
getNotebookDocumentServiceback to summary
public default NotebookDocumentService getNotebookDocumentService()

Provides access to the notebookDocument services.

Since 3.17.0

Annotations
@JsonDelegate
getTextDocumentServiceback to summary
public TextDocumentService getTextDocumentService()

Provides access to the textDocument services.

Annotations
@JsonDelegate
getWorkspaceServiceback to summary
public WorkspaceService getWorkspaceService()

Provides access to the workspace services.

Annotations
@JsonDelegate
initializeback to summary
public CompletableFuture<InitializeResult> initialize(InitializeParams params)

The initialize request is sent as the first request from the client to the server.

If the server receives requests or notifications before the initialize request, it should act as follows:

Until the server has responded to the initialize request with an InitializeResult, the client must not send any additional requests or notifications to the server.

During the initialize request, the server is allowed to send the notifications window/showMessage, window/logMessage, and telemetry/event, as well as the request window/showMessageRequest, to the client.

Annotations
@JsonRequest
initializedback to summary
public default void initialized(InitializedParams params)

The initialized notification is sent from the client to the server after the client received the result of the initialize request, but before the client is sending any other request or notification to the server. The server can use the initialized notification, for example, to dynamically register capabilities.

Annotations
@JsonNotification
initializedback to summary
public default void initialized()

Deprecated

Use initialized(InitializedParams) instead.

Annotations
@Deprecated
setTraceback to summary
public default void setTrace(SetTraceParams params)

A notification that should be used by the client to modify the trace setting of the server.

Since 3.16.0

Annotations
@JsonNotification:$/setTrace
shutdownback to summary
public CompletableFuture<Object> shutdown()

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.

Annotations
@JsonRequest