Skip to content

[Sonic] Minor cleanup - #84181

Merged
davidwengier merged 1 commit into
dotnet:features/sonicfrom
davidwengier:SonicCleanup
Jun 19, 2026
Merged

[Sonic] Minor cleanup#84181
davidwengier merged 1 commit into
dotnet:features/sonicfrom
davidwengier:SonicCleanup

Conversation

@davidwengier

@davidwengier davidwengier commented Jun 17, 2026

Copy link
Copy Markdown
Member

Just a couple of small things I noticed while look for uses of GetImplCSharpDocument(). One unused method, and one comment.

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings June 17, 2026 23:27
@davidwengier
davidwengier requested a review from a team as a code owner June 17, 2026 23:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR performs minor cleanup in the Razor remote services by (1) clarifying an inline comment about which diagnostics are being queried during formatting, and (2) removing an unused helper method from the remote diagnostics helper.

Changes:

  • Clarify the comment in RazorFormattingService.GetDocumentFormattingChangesAsync explaining that CSharpDocument.Diagnostics are Razor diagnostics (not Roslyn C# diagnostics).
  • Remove the unused GetRazorDiagnosticsAsync method from RazorDiagnosticHelper and drop its now-unused System.Threading / System.Threading.Tasks usings.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Formatting/RazorFormattingService.cs Updates an explanatory comment near the range-formatting diagnostic guard.
src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Diagnostics/RazorDiagnosticHelper.cs Deletes an unused async diagnostics helper method and associated usings.

@ToddGrun ToddGrun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

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.

3 participants