-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refresh browser for all transitively referencing projects #45096
base: release/9.0.1xx
Are you sure you want to change the base?
Conversation
Thanks for your PR, @tmat. |
b635a3a
to
6224ed9
Compare
6224ed9
to
2b72907
Compare
@@ -348,7 +348,7 @@ private async ValueTask DisplayResultsAsync(WatchHotReloadService.Updates update | |||
switch (updates.Status) | |||
{ | |||
case ModuleUpdateStatus.None: | |||
_reporter.Output("No hot reload changes to apply."); | |||
_reporter.Output("No C# changes to apply."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should strings be localized?
while (queue.Count > 0) | ||
{ | ||
var project = queue.Dequeue(); | ||
if (visited.Add(project)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with ProjectGraphNode, but is it guaranteed that either:
- A single ProjectGraphNode object will always represent the project from different references?
- or ProjectGraphNode overrides GetHashCode() and Equals() to allow similar ProjectGraphNodes to match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be odd if new instances of ProjectGraphNode were created as we traverse the graph.
We only looked for browser refresh server associated with the project containing changes, but we also need to look for browser refresh server on all transitively referencing projects.
Fixes regression #45011
Port of #45095 w/o test (necessary test infra isn't in 1xx branch)