Repository navigation
Fix sticky 'Finding apphosts' notification in VS Code extension - #16664
Merged
Adam Ratzman (adamint) merged 1 commit intoMay 1, 2026
Merged
Adam Ratzman (adamint) merged 1 commit into
Adam Ratzman (adamint) merged 1 commit into
Conversation
The 'Finding apphosts' message was displayed via DisplayMessage, which the extension renders as a sticky vscode.window.showInformationMessage toast that has no programmatic dismissal. Fold it into the surrounding ShowStatusAsync status text so it rides on the existing progress notification (auto-dismissed via the finally block) instead.
Adam Ratzman (adamint)
requested review from
James Newton-King (JamesNK),
David Fowler (davidfowl) and
Mitch Denny (mitchdenny)
as code owners
May 1, 2026 18:35
Member
Author
|
/backport to release/13.3 |
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16664Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16664" |
Contributor
|
Started backporting to |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a UX issue when the Aspire CLI runs inside the VS Code extension: it removes a sticky “information message” toast during AppHost discovery by using the existing ShowStatusAsync progress mechanism for the “Finding AppHosts...” text instead of emitting a separate DisplayMessage.
Changes:
- Updated AppHost discovery status text to use
InteractionServiceStrings.FindingAppHostsin theShowStatusAsyncprogress scope. - Removed the redundant
interactionService.DisplayMessage(... FindingAppHosts)call that caused an undismissable VS Code notification.
Ankit Jain (radical)
approved these changes
May 1, 2026
David Pine (IEvangelist)
approved these changes
May 1, 2026
David Pine (IEvangelist)
left a comment
Member
There was a problem hiding this comment.
Reviewed; no issues found.
Adam Ratzman (adamint)
merged commit May 1, 2026
a6d6086
into
microsoft:main
567 of 572 checks passed
Nell Shamrell-Harrington (nellshamrell)
pushed a commit
to nellshamrell/aspire
that referenced
this pull request
May 18, 2026
…osoft#16664) The 'Finding apphosts' message was displayed via DisplayMessage, which the extension renders as a sticky vscode.window.showInformationMessage toast that has no programmatic dismissal. Fold it into the surrounding ShowStatusAsync status text so it rides on the existing progress notification (auto-dismissed via the finally block) instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When the CLI runs inside the VS Code extension,
ProjectLocator.FindAppHostProjectFilesAsyncdisplayed a "🔍 Finding apphosts..." message viainteractionService.DisplayMessage. The extension rendersdisplayMessageasvscode.window.showInformationMessage, which is a sticky toast with no programmatic dismissal — so the notification stayed up indefinitely after the search completed.The same method was already inside an
ShowStatusAsyncblock whose status text was the more generic"Searching...".ShowStatusAsyncis rendered by the extension as avscode.window.withProgressnotification that the CLI dismisses viaBackchannel.ShowStatusAsync(null, ...)in thefinallyblock ofExtensionInteractionService.ShowStatusAsync.This change folds the "Finding AppHosts..." text into the existing
ShowStatusAsynccall and removes the redundantDisplayMessage, so the user sees a single progress notification that auto-dismisses when the search completes.Console UX is unchanged in spirit: previously users saw a
Searching...spinner plus a persistent🔍 Finding apphosts...line; now they see only the spinner labeledFinding AppHosts....Checklist
ProjectLocatorTestsandExecCommandTests(which asserts onFindingAppHosts) cover the relevant paths and continue to pass. No new behavior to assert.