]> git.lizzy.rs Git - rust.git/commitdiff
Update vscode for new status
authorEdwin Cheng <edwin0cheng@gmail.com>
Thu, 28 Jan 2021 15:33:48 +0000 (23:33 +0800)
committerEdwin Cheng <edwin0cheng@gmail.com>
Thu, 28 Jan 2021 17:04:14 +0000 (01:04 +0800)
editors/code/src/ctx.ts
editors/code/src/lsp_ext.ts

index e7585184bd439741100593a69fa4699e6f55295d..c07583cfa2dc1e27f20ca995b2641a2f85408df9 100644 (file)
@@ -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";
index d21a3db862de7d02d3d814caf377769ebe53a23d..2de1e427d70be9846b78545a8be298094c87dd72 100644 (file)
@@ -10,7 +10,7 @@ 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" | "invalid" | "needsReload";
+export type Status = "loading" | "ready" | "readyPartial" | "invalid" | "needsReload";
 export interface StatusParams {
     status: Status;
 }