diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index e7585184bd..c07583cfa2 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -74,6 +74,12 @@ export class Ctx { this.statusBar.command = undefined; this.statusBar.color = undefined; break; + case "readyPartial": + this.statusBar.text = "rust-analyzer"; + this.statusBar.tooltip = "Ready (Partial)"; + this.statusBar.command = undefined; + this.statusBar.color = undefined; + break; case "ready": this.statusBar.text = "rust-analyzer"; this.statusBar.tooltip = "Ready"; diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index d21a3db862..2de1e427d7 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts @@ -10,7 +10,7 @@ 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" | "invalid" | "needsReload"; +export type Status = "loading" | "ready" | "readyPartial" | "invalid" | "needsReload"; export interface StatusParams { status: Status; }