mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +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.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";
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue