diff options
Diffstat (limited to 'editors/code/src/status_display.ts')
-rw-r--r-- | editors/code/src/status_display.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/editors/code/src/status_display.ts b/editors/code/src/status_display.ts index 48cf0655b..e3719075b 100644 --- a/editors/code/src/status_display.ts +++ b/editors/code/src/status_display.ts | |||
@@ -1,8 +1,16 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | 2 | ||
3 | import { Ctx } from './ctx'; | ||
4 | |||
3 | const spinnerFrames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']; | 5 | const spinnerFrames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']; |
4 | 6 | ||
5 | export class StatusDisplay implements vscode.Disposable { | 7 | export function activateStatusDisplay(ctx: Ctx) { |
8 | const statusDisplay = new StatusDisplay(ctx.config.cargoWatchOptions.command); | ||
9 | ctx.pushCleanup(statusDisplay); | ||
10 | ctx.onNotification('$/progress', params => statusDisplay.handleProgressNotification(params)); | ||
11 | } | ||
12 | |||
13 | class StatusDisplay implements vscode.Disposable { | ||
6 | packageName?: string; | 14 | packageName?: string; |
7 | 15 | ||
8 | private i = 0; | 16 | private i = 0; |