mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Remove confusion around serverStatusNotification
This commit is contained in:
parent
2cdc83af93
commit
dcb759b727
1 changed files with 8 additions and 3 deletions
|
@ -433,11 +433,13 @@ interface ServerStatusParams {
|
|||
/// `ok` means that the server is completely functional.
|
||||
///
|
||||
/// `warning` means that the server is partially functional.
|
||||
/// It can server requests, but some results might be wrong due to,
|
||||
/// for example, some missing dependencies.
|
||||
/// It can answer correctly to most requests, but some results
|
||||
/// might be wrong due to, for example, some missing dependencies.
|
||||
///
|
||||
/// `error` means that the server is not functional. For example,
|
||||
/// there's a fatal build configuration problem.
|
||||
/// there's a fatal build configuration problem. The server might
|
||||
/// still give correct answers to simple requests, but most results
|
||||
/// will be incomplete or wrong.
|
||||
health: "ok" | "warning" | "error",
|
||||
/// Is there any pending background work which might change the status?
|
||||
/// For example, are dependencies being downloaded?
|
||||
|
@ -451,6 +453,9 @@ This notification is sent from server to client.
|
|||
The client can use it to display *persistent* status to the user (in modline).
|
||||
It is similar to the `showMessage`, but is intended for stares rather than point-in-time events.
|
||||
|
||||
Note that this functionality is intended primarily to inform the end user about the state of the server.
|
||||
In particular, it's valid for the client to completely ignore this extension.
|
||||
Clients are discouraged from but are allowed to use the `health` status to decide if it's worth sending a request to the server.
|
||||
|
||||
## Syntax Tree
|
||||
|
||||
|
|
Loading…
Reference in a new issue