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

Razor EA changes to allow better tests in Razor #74402

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

davidwengier
Copy link
Contributor

  • Moves things used for testing into a Testing folder so we know its safe to change
  • Allows creation of the test language server with a different language server kind (for cohosting)
  • Allows tests to use the RazorPinnedSolutionInfoWrapper
  • Tiny bit of clean up

@davidwengier davidwengier requested a review from a team as a code owner July 16, 2024 05:05
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 16, 2024
[Shared]
internal class RazorLanguageServerFactoryWrapper : AbstractRazorLanguageServerFactoryWrapper
[Export(typeof(RazorTestLanguageServerFactory))]
[Export(typeof(AbstractRazorLanguageServerFactoryWrapper))]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The abstract class is only used for this export, and was probably just copied from Razor where we used to use abstract classes a lot. I'm exporting it as itself now, so that we can remove the abstract class in future, but we have to wait until these changes make it to VS Preview images for that to happen, or the Roslyn integration tests will fail.

@davidwengier davidwengier merged commit 66e63bc into dotnet:main Jul 16, 2024
25 checks passed
@davidwengier davidwengier deleted the RazorCohostTest branch July 16, 2024 07:03
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 16, 2024
davidwengier added a commit to dotnet/razor that referenced this pull request Jul 18, 2024
Part of #9519 and
#10603
Requires dotnet/roslyn#74402

Removes a little more dodginess in the cohosting tests by actually using
the `RazorPinnedSolutionInfoWrapper` for solution checksums, just like
the real OOP services.
@RikkiGibson RikkiGibson modified the milestones: Next, 17.12 P1 Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants