From 1165ac68c0ed9407a288218951b3251577c255d6 Mon Sep 17 00:00:00 2001 From: Wasim Date: Sun, 30 Aug 2026 16:41:34 +0530 Subject: [PATCH] fix(lsp): dispose orphaned progress notifications on client shutdown Fixes #16750 Ensures that any pending progress UI notifications are resolved when the Language Server progress tracking is disposed, preventing orphaned progress bars from hanging indefinitely in the status bar if the server restarts or crashes. --- src/client/activation/progress.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/activation/progress.ts b/src/client/activation/progress.ts index 5abcb9e553c0..f3895a31c89c 100644 --- a/src/client/activation/progress.ts +++ b/src/client/activation/progress.ts @@ -47,6 +47,11 @@ export class ProgressReporting implements Disposable { if (this.statusBarMessage) { this.statusBarMessage.dispose(); } + if (this.progressDeferred) { + this.progressDeferred.resolve(); + this.progressDeferred = undefined; + this.progress = undefined; + } } private beginProgress(): void {