Skip to content

Improve de-duping of project load failure toasts#69455

Merged
dibarbet merged 2 commits intodotnet:mainfrom
dibarbet:better_toast_dedupe
Aug 10, 2023
Merged

Improve de-duping of project load failure toasts#69455
dibarbet merged 2 commits intodotnet:mainfrom
dibarbet:better_toast_dedupe

Conversation

@dibarbet
Copy link
Copy Markdown
Member

I discovered that the de-duping on the vscode side of notifications is not quite good enough for this scenario. While vscode does only show a max of 3 notifications at once - if the projects load slowly enough the 3 toasts will keep getting replaced by new ones after they are dismissed.

Instead, we now only show 1 toast for a single call to sln/projects loading no matter how many load failures there are. The logs will still contain the full list load failures. Additionally, we do not wait for all the projects to load to show a failure as that can take some time. We always display the first error we hit.

e.g. in roslyn you can see there are many project load failures. We end up showing just the first one we find.

image

@dibarbet dibarbet requested a review from a team as a code owner August 10, 2023 00:10
@ghost ghost added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 10, 2023
@dibarbet dibarbet enabled auto-merge August 10, 2023 00:43
@dibarbet dibarbet merged commit 78fbc7c into dotnet:main Aug 10, 2023
@ghost ghost added this to the Next milestone Aug 10, 2023
@dibarbet dibarbet deleted the better_toast_dedupe branch August 14, 2023 19:34
@sdudnic
Copy link
Copy Markdown

sdudnic commented Aug 16, 2023

so, when to wait for this fix for the final users of VS code C# extension?

@dibarbet
Copy link
Copy Markdown
Member Author

so, when to wait for this fix for the final users of VS code C# extension?

We just released a new version (a couple hours ago) of the extension with this change (and one more) that should prevent the pop-ups from appearing in your scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants