Skip to content

Conversation

@davidwengier
Copy link
Member

Fixes #4446

@davidwengier davidwengier requested a review from a team as a code owner February 24, 2025 05:17
# Conflicts:
#	src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/Cohost/CohostDocumentPullDiagnosticsEndpoint.cs
#	src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/CohostDocumentPullDiagnosticsTest.cs
@davidwengier
Copy link
Member Author

Test insertion to make sure I don't annoy RPS: https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/614387

Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

Generally looks good! A couple of points:

  1. Consider whether you want to add a new integration test. I think this feature probably warrants one to verify that the TODO comments actually show up in VS Task List.
  2. It looks like the test insertion uncovered a regression in non-devdiv methods JIT'd. I'm not sure how that could happen from this PR, but it looks like the regression was in all five iterations of the run.

@davidwengier
Copy link
Member Author

The RPS and Speedometer regressions are also present in our main branch insertions and my System.Text.JSON test insertions, so whatever they are, I'm confident they're not caused by this change.

@DustinCampbell
Copy link
Member

DustinCampbell commented Feb 28, 2025

The RPS and Speedometer regressions are also present in our main branch insertions and my System.Text.JSON test insertions, so whatever they are, I'm confident they're not caused by this change.

Awesome! Adding my approval then, though do consider whether an integration test for the end-to-end would be valuable.

@davidwengier davidwengier enabled auto-merge March 3, 2025 05:16
@davidwengier davidwengier merged commit a822584 into dotnet:main Mar 3, 2025
12 checks passed
@davidwengier davidwengier deleted the TODOComments branch March 3, 2025 08:08
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Mar 3, 2025
Assert.NotNull(serverCapabilities.DiagnosticProvider);
Assert.NotNull(serverCapabilities.DiagnosticProvider.DiagnosticKinds);
Assert.Single(serverCapabilities.DiagnosticProvider.DiagnosticKinds);
Assert.Equal(2, serverCapabilities.DiagnosticProvider.DiagnosticKinds.Length);
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, I don't think this assert is strictly necessary. I'm pretty sure that Assert.Collection will fail if the length doesn't match the number of item assertions.

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.

Razor TODO comments should be listed in the task list

3 participants