diff options
| author | Edwin Cheng <edwin0cheng@gmail.com> | 2021-01-28 23:33:48 +0800 |
|---|---|---|
| committer | Edwin Cheng <edwin0cheng@gmail.com> | 2021-01-29 01:04:14 +0800 |
| commit | 35310f1032ee1d84853fa166c0003ba9cd38d910 (patch) | |
| tree | d59f936eae50ecc039388bbde623acb82e062815 /editors/code/src | |
| parent | 9358eecc042d8b551f58d2d5ddb9c88d258880c1 (diff) | |
| download | rust-35310f1032ee1d84853fa166c0003ba9cd38d910.tar.gz rust-35310f1032ee1d84853fa166c0003ba9cd38d910.zip | |
Update vscode for new status
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/ctx.ts | 6 | ||||
| -rw-r--r-- | editors/code/src/lsp_ext.ts | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index e7585184bd4..c07583cfa2d 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 d21a3db862d..2de1e427d70 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<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; } |
