Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve de-duping of project load failure toasts #69455

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

dibarbet
Copy link
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
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 10, 2023
@dibarbet dibarbet merged commit 78fbc7c into dotnet:main Aug 10, 2023
24 checks passed
@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

sdudnic commented Aug 16, 2023

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

@dibarbet
Copy link
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