public interface LanguageServer
Modifier and Type | Method and Description |
---|---|
default void |
cancelProgress(WorkDoneProgressCancelParams params)
This notification is sent from the client to the server to cancel a progress initiated on the server side.
|
void |
exit()
A notification to ask the server to exit its process.
|
TextDocumentService |
getTextDocumentService()
Provides access to the textDocument services.
|
WorkspaceService |
getWorkspaceService()
Provides access to the workspace services.
|
java.util.concurrent.CompletableFuture<InitializeResult> |
initialize(InitializeParams params)
The initialize request is sent as the first request from the client to
the server.
|
default void |
initialized()
Deprecated.
Use
initialized(InitializedParams) instead. |
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.
|
default void |
setTrace(SetTraceParams params)
A notification that should be used by the client to modify the trace setting of the server.
|
java.util.concurrent.CompletableFuture<java.lang.Object> |
shutdown()
The shutdown request is sent from the client to the server.
|
java.util.concurrent.CompletableFuture<InitializeResult> initialize(InitializeParams params)
If the server receives requests or notifications before the initialize request, it should act as follows:
ResponseErrorCode.ServerNotInitialized
.
The message can be picked by the server.
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.
default void initialized(InitializedParams params)
@Deprecated default void initialized()
initialized(InitializedParams)
instead.java.util.concurrent.CompletableFuture<java.lang.Object> shutdown()
void exit()
TextDocumentService getTextDocumentService()
WorkspaceService getWorkspaceService()
default void cancelProgress(WorkDoneProgressCancelParams params)
Since 3.15.0
default void setTrace(SetTraceParams params)
Since 3.16.0