aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/status_display.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-31 17:14:00 +0000
committerAleksey Kladov <[email protected]>2019-12-31 17:32:17 +0000
commit087af54069d34eef5197e04d64ac322d9ee98085 (patch)
tree3a6e4b1884930c07bd800a771ffd777d7a866b11 /editors/code/src/status_display.ts
parent0849f7001cac6af93ce9e9356f8c21881bbe34c5 (diff)
Refactor server lifecycle
Diffstat (limited to 'editors/code/src/status_display.ts')
-rw-r--r--editors/code/src/status_display.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/status_display.ts b/editors/code/src/status_display.ts
index e3719075b..1454bf8b0 100644
--- a/editors/code/src/status_display.ts
+++ b/editors/code/src/status_display.ts
@@ -7,7 +7,9 @@ const spinnerFrames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '
7export function activateStatusDisplay(ctx: Ctx) { 7export function activateStatusDisplay(ctx: Ctx) {
8 const statusDisplay = new StatusDisplay(ctx.config.cargoWatchOptions.command); 8 const statusDisplay = new StatusDisplay(ctx.config.cargoWatchOptions.command);
9 ctx.pushCleanup(statusDisplay); 9 ctx.pushCleanup(statusDisplay);
10 ctx.onNotification('$/progress', params => statusDisplay.handleProgressNotification(params)); 10 ctx.onDidRestart(client => {
11 client.onNotification('$/progress', params => statusDisplay.handleProgressNotification(params));
12 })
11} 13}
12 14
13class StatusDisplay implements vscode.Disposable { 15class StatusDisplay implements vscode.Disposable {