Skip to content

Conversation

@DustinCampbell
Copy link
Member

@dotnet/razor-tooling: This is a big change but the vast majority of it is mechanical. I was focused on the following:

  • Only define JSON.NET JsonConverters for "top-level" types; that is, types that are serialized directly. There are only four of these:

    • ProjectRazorJson - we serialize/deserialize this directly to a file.
    • ProjectSnapshotHandle - instances of this are passed as arguments over StreamJsonRpc to the Razor.Remote in the Roslyn OOP.
    • TagHelperDeltaResult and TagHelperResolutionResult - these are results of calls to Razor.Remote in the Roslyn OOP.
  • Reorganize MS.ANC.Razor.ProjectEngineHost and fixup namespaces.

  • Prefer ImmutableArray<TagHelperDescriptor> over the many different variations that have been used to collect together tag helpers in the tooling layer -- TagHelperDescriptor[], IReadOnlyList<TagHelperDescriptor>, IReadOnlyCollection<TagHelperDescriptor>, etc.

These changes require a lot of updates to tests and calling code, which is largely mechanical.

@dotnet/razor-compiler: This is really a tooling change but there are two changes that have brought you to this PR. First, InternalsVisibleTo has been added for MS.VS.Razor.LiveShare.Tests. The other change is a new SetCapacityIfNeeded extension method in Utilities.Shared. Just letting you know in case you want to avoid wading through the whole PR.

@DustinCampbell DustinCampbell requested review from a team as code owners May 24, 2023 21:09
@DustinCampbell DustinCampbell force-pushed the formalize-top-level-converters branch from 58c466b to 8795985 Compare May 25, 2023 15:14
Copy link
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Compiler changes LGTM.

@DustinCampbell DustinCampbell merged commit 843db34 into dotnet:main May 25, 2023
@DustinCampbell DustinCampbell deleted the formalize-top-level-converters branch May 25, 2023 22:19
@DustinCampbell DustinCampbell restored the formalize-top-level-converters branch May 25, 2023 22:32
@DustinCampbell DustinCampbell deleted the formalize-top-level-converters branch April 23, 2024 15:41
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