Skip to content

Conversation

tmat
Copy link
Member

@tmat tmat commented Oct 14, 2025

Removes code paths that are no longer needed and workaround for a bug that has been fixed.
Move pre-hydrating documents to HotReloadService since this is not needed for solutions opened in the IDE.
Pre-hydrate additional and analyzer config files.
Add more tests.

Remove obsolete External Access API.

Fixes #80687

@tmat tmat requested a review from a team as a code owner October 14, 2025 17:31
@tmat tmat changed the title Simplify StartDebuggingSession [Hot Reload] Simplify StartDebuggingSession Oct 14, 2025
// It's important to do this before we start watching for changes so that we have a baseline we can compare future snapshots to.
var sourceText = await documentState.GetTextAsync(cancellationToken).ConfigureAwait(false);

// TODO: https://github.com/dotnet/roslyn/issues/51993
Copy link
Member Author

@tmat tmat Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is fixed and "stale project" handling got improved, so we do not need to check the checksums of the documents against the PDB here anymore. We only need to load the SourceText from the disk. If the checksum doesn't match the project will be tracked as "stale".

Removing the checksum checks should speed up session start in dotnet-watch.

@tmat
Copy link
Member Author

tmat commented Oct 14, 2025

@DustinCampbell ptal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StartDebuggingSessionAsync does not hydrate source texts of additional and analyzer config documents

1 participant