mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-15 14:55:04 +00:00
More robust status notifications
This commit is contained in:
parent
9143e3925c
commit
8fe20b19d4
11 changed files with 169 additions and 154 deletions
|
@ -10,11 +10,12 @@ export interface AnalyzerStatusParams {
|
|||
export const analyzerStatus = new lc.RequestType<AnalyzerStatusParams, string, void>("rust-analyzer/analyzerStatus");
|
||||
export const memoryUsage = new lc.RequestType0<string, void>("rust-analyzer/memoryUsage");
|
||||
|
||||
export type Status = "loading" | "ready" | "readyPartial" | "invalid" | "needsReload";
|
||||
export interface StatusParams {
|
||||
status: Status;
|
||||
export interface ServerStatusParams {
|
||||
health: "ok" | "warning" | "error"
|
||||
quiescent: boolean
|
||||
message?: string
|
||||
}
|
||||
export const status = new lc.NotificationType<StatusParams>("rust-analyzer/status");
|
||||
export const serverStatus = new lc.NotificationType<ServerStatusParams>("experimental/serverStatus");
|
||||
|
||||
export const reloadWorkspace = new lc.RequestType0<null, void>("rust-analyzer/reloadWorkspace");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue