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

Refresh browser for all transitively referencing projects #45096

Open
wants to merge 1 commit into
base: release/9.0.1xx
Choose a base branch
from

Conversation

tmat
Copy link
Member

@tmat tmat commented Nov 24, 2024

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)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member labels Nov 24, 2024
Copy link
Contributor

Thanks for your PR, @tmat.
To learn about the PR process and branching schedule of this repo, please take a look at the SDK PR Guide.

@tmat tmat marked this pull request as ready for review November 24, 2024 19:45
@@ -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.");

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))

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?

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch Area-Watch Servicing-consider untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants