From 8fe20b19d4702fc6d6933c31abddc8539d2581f0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Apr 2021 14:16:35 +0300 Subject: More robust status notifications --- editors/code/src/lsp_ext.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'editors/code/src/lsp_ext.ts') diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index 00e128b8c..2e1744f1b 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts @@ -10,11 +10,12 @@ export interface AnalyzerStatusParams { export const analyzerStatus = new lc.RequestType("rust-analyzer/analyzerStatus"); export const memoryUsage = new lc.RequestType0("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("rust-analyzer/status"); +export const serverStatus = new lc.NotificationType("experimental/serverStatus"); export const reloadWorkspace = new lc.RequestType0("rust-analyzer/reloadWorkspace"); -- cgit v1.2.3 From ad02bfe58fd52293d9ae4a049f98f475df9d3abb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 6 Apr 2021 15:50:02 +0300 Subject: Sacrifice for the semicolon god --- editors/code/src/lsp_ext.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editors/code/src/lsp_ext.ts') diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index 2e1744f1b..e453bb9e0 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts @@ -11,9 +11,9 @@ export const analyzerStatus = new lc.RequestType("rust-analyzer/memoryUsage"); export interface ServerStatusParams { - health: "ok" | "warning" | "error" - quiescent: boolean - message?: string + health: "ok" | "warning" | "error"; + quiescent: boolean; + message?: string; } export const serverStatus = new lc.NotificationType("experimental/serverStatus"); -- cgit v1.2.3