mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Update vscode for new status
This commit is contained in:
parent
9358eecc04
commit
35310f1032
2 changed files with 7 additions and 1 deletions
|
@ -74,6 +74,12 @@ export class Ctx {
|
||||||
this.statusBar.command = undefined;
|
this.statusBar.command = undefined;
|
||||||
this.statusBar.color = undefined;
|
this.statusBar.color = undefined;
|
||||||
break;
|
break;
|
||||||
|
case "readyPartial":
|
||||||
|
this.statusBar.text = "rust-analyzer";
|
||||||
|
this.statusBar.tooltip = "Ready (Partial)";
|
||||||
|
this.statusBar.command = undefined;
|
||||||
|
this.statusBar.color = undefined;
|
||||||
|
break;
|
||||||
case "ready":
|
case "ready":
|
||||||
this.statusBar.text = "rust-analyzer";
|
this.statusBar.text = "rust-analyzer";
|
||||||
this.statusBar.tooltip = "Ready";
|
this.statusBar.tooltip = "Ready";
|
||||||
|
|
|
@ -10,7 +10,7 @@ export interface AnalyzerStatusParams {
|
||||||
export const analyzerStatus = new lc.RequestType<AnalyzerStatusParams, string, void>("rust-analyzer/analyzerStatus");
|
export const analyzerStatus = new lc.RequestType<AnalyzerStatusParams, string, void>("rust-analyzer/analyzerStatus");
|
||||||
export const memoryUsage = new lc.RequestType0<string, void>("rust-analyzer/memoryUsage");
|
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 {
|
export interface StatusParams {
|
||||||
status: Status;
|
status: Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue