Repository navigation
Do not block F# package loading on the Unified Settings refresh - #20998
Merged
abonie merged 3 commits intoNov 20, 2026
Merged
Conversation
Package initialization awaited the one-time import of legacy settings, and the import first waits for IUnifiedSettingsMetadata.WaitForRefreshAsync. When Visual Studio loads the F# package synchronously on the UI thread before Unified Settings has loaded its observer packages, the refresh waits for that blocked UI thread and Visual Studio hangs. Start the import as a JoinableTask of the package instead. The package loads at once, the import runs when the refresh completes, and package disposal still joins it. The roaming retry uses the same factory. Fixes dotnet#20996 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
✅ Release-note check exemptedThe NO_RELEASE_NOTES label or localization-bot authorship exempts this pull request. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xperiandri
commented
Nov 18, 2026
…ing key with DoesNotContain Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
abonie
reviewed
Nov 19, 2026
abonie
approved these changes
Nov 19, 2026
This was referenced Nov 20, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #20996
Visual Studio no longer hangs at solution load when it loads the F# package synchronously before Unified Settings finishes its refresh. Package initialization waited for the one-time import of legacy settings, the import waits for that refresh, and the refresh needs the UI thread the package load blocks; the import now runs as a JoinableTask of the package and completes after the refresh.
Details
startAsyncbecame the synchronousstart, so most of that file's diff is indentation; review with whitespace hidden.🤖 Generated with Claude Code