Skip to content

Commit

Permalink
Allowed Visual Studio to process changes to loaded and unloaded proje…
Browse files Browse the repository at this point in the history
…cts before hiding unloaded projects in Solution Explorer.

Fixes #4
  • Loading branch information
reduckted committed Aug 14, 2023
1 parent b065d56 commit b1852e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/ProjectFilter/Services/FilterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ public partial class FilterService : IFilterService {
await LoadProjectAsync(identifier, options.LoadProjectDependencies, state);
}

// Let Visual Studio catch up with the changes we made before we do
// anything else. If we don't do this, then Solution Explorer can
// end up hiding projects that we just loaded (though, that only seems
// to be a problem if you've loaded a Solution Filter ¯\_(ツ)_/¯).
await Task.Yield();

// Even if we've been cancelled, we'll still hide the unloaded
// projects and show the loaded projects. This prevents us from
// getting into a state where we've loaded some projects but they
Expand Down

0 comments on commit b1852e7

Please sign in to comment.