Skip to content

Commit

Permalink
Merge pull request #69494 from dibarbet/dont_popup_warnings
Browse files Browse the repository at this point in the history
Only show toast when project load fails
  • Loading branch information
dibarbet authored Aug 14, 2023
2 parents 3d55a6b + 03407bc commit cab7ff3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private async ValueTask LoadOrReloadProjectsAsync(ImmutableSegmentedList<string>
tasks.Add(Task.Run(async () =>
{
var errorKind = await LoadOrReloadProjectAsync(projectPathToLoadOrReload, projectBuildManager, cancellationToken);
if (errorKind is not null)
if (errorKind is LSP.MessageType.Error)
{
// We should display a toast when the value of displayedToast is 0. This will also update the value to 1 meaning we won't send any more toasts.
var shouldShowToast = Interlocked.CompareExchange(ref displayedToast, value: 1, comparand: 0) == 0;
Expand Down

0 comments on commit cab7ff3

Please sign in to comment.