Module lsp_types::notification

source ·

Enums

The base protocol now offers support for request cancellation. To cancel a request, a notification message with the following properties is sent:
A notification sent from the client to the server to signal the change of configuration settings.
The document change notification is sent from the client to the server to signal changes to a text document. In 2.0 the shape of the params has changed to include proper version numbers and language ids.
The watched files notification is sent from the client to the server when the client detects changes to files watched by the language client.
The workspace/didChangeWorkspaceFolders notification is sent from the client to the server to inform the server about workspace folder configuration changes
The document close notification is sent from the client to the server when the document got closed in the client. The document’s truth now exists where the document’s uri points to (e.g. if the document’s uri is a file uri the truth now exists on disk).
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.
The document save notification is sent from the client to the server when the document was saved in the client.
A notification to ask the server to exit its process. The server should exit with success code 0 if the shutdown request has been received before; otherwise with error code 1.
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.
The log message notification is sent from the server to the client to ask the client to log a particular message.
Diagnostics notification are sent from the server to the client to signal results of validation runs.
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.
The telemetry notification is sent from the server to the client to ask the client to log a telemetry event.
The document will save notification is sent from the client to the server before the document is actually saved.
The document will save request is sent from the client to the server before the document is actually saved. The request can return an array of TextEdits which will be applied to the text document before it is saved. Please note that clients might drop results if computing the text edits took too long or if a server constantly fails on this request. This is done to keep the save fast and reliable.

Traits