mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Refactor server lifecycle
This commit is contained in:
parent
0849f7001c
commit
087af54069
12 changed files with 216 additions and 199 deletions
|
@ -7,7 +7,9 @@ const spinnerFrames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '
|
|||
export function activateStatusDisplay(ctx: Ctx) {
|
||||
const statusDisplay = new StatusDisplay(ctx.config.cargoWatchOptions.command);
|
||||
ctx.pushCleanup(statusDisplay);
|
||||
ctx.onNotification('$/progress', params => statusDisplay.handleProgressNotification(params));
|
||||
ctx.onDidRestart(client => {
|
||||
client.onNotification('$/progress', params => statusDisplay.handleProgressNotification(params));
|
||||
})
|
||||
}
|
||||
|
||||
class StatusDisplay implements vscode.Disposable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue