Skip to content

Clean up DocumentContext a little#12990

Merged
davidwengier merged 7 commits into
dotnet:mainfrom
davidwengier:DocumentContextCleanup
Apr 2, 2026
Merged

Clean up DocumentContext a little#12990
davidwengier merged 7 commits into
dotnet:mainfrom
davidwengier:DocumentContextCleanup

Conversation

@davidwengier

@davidwengier davidwengier commented Apr 2, 2026

Copy link
Copy Markdown
Member

We currently have DocumentContext, DocumentSnapshot and of course Roslyn's Document, and now that we don't have any indirection needs, these are rife for improvement. This is not that, but perhaps a step on the path.

It started because I noticed the HACK: comment, which is now easily resolvable, and then I pulled on the thread a little, because I figure if there are less things on these types, then it makes it easier to reason about their usage.

@davidwengier
davidwengier requested a review from a team as a code owner April 2, 2026 05:18
@ToddGrun

ToddGrun commented Apr 2, 2026

Copy link
Copy Markdown

internal record DelegatedSpellCheckParams(

Nice!


Refers to: src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Protocol/DelegatedTypes.cs:15 in 7efe8d7. [](commit_id = 7efe8d7, deletion_comment = True)

@ToddGrun ToddGrun left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

:shipit:

@davidwengier
davidwengier merged commit 951f8eb into dotnet:main Apr 2, 2026
10 checks passed
@davidwengier
davidwengier deleted the DocumentContextCleanup branch April 2, 2026 20:43
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Apr 2, 2026
chsienki added a commit that referenced this pull request Apr 2, 2026
Resolve merge conflict with PR #12990 (DocumentContext cleanup) and
PR #12981 (nested file support).
@JoeRobich JoeRobich modified the milestones: Next, 18.7 Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants