Conversation
|
Do you want reviews? I'll admit, the first thing I saw in here was code that used to be in ExternalAccess.RoslynWorkspace, which used to be VS Code exclusive, moved to MS.VS.RazorExtension which used to be VS exclusive, and I got very confused by what the intent was. Then I re-read it! :) |
I don't think it's ready for reviews yet |
Feel free to ping in Teams when you're ready. |
davidwengier
left a comment
There was a problem hiding this comment.
Mostly LGTM. I skipped the one file with the merge conflict markers though 😛
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.Microbenchmarks.Generator", "src\Compiler\perf\Microsoft.AspNetCore.Razor.Microbenchmarks.Generator\Microsoft.AspNetCore.Razor.Microbenchmarks.Generator.csproj", "{7400A168-2552-49C7-93E3-D4DAA90C216F}" | ||
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspace", "src\Razor\src\Microsoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspace\Microsoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspace.csproj", "{2223B8FD-D98A-47BE-94A9-6A3A6B8557B8}" | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.VisualStudioCode.RazorExtension", "src\Razor\src\Microsoft.VisualStudioCode.RazorExtension\Microsoft.VisualStudioCode.RazorExtension.csproj", "{2223B8FD-D98A-47BE-94A9-6A3A6B8557B8}" |
There was a problem hiding this comment.
I don't know of a better name, and I don't think it matters, but I would like to state for the record that Microsoft.VisualStudio.RazorExtension is a visual studio extension and Microsoft.VisualStudioCode.RazorExtension is not a visual studio code extension 😛
There was a problem hiding this comment.
I don't love the name either. It's a bit too generic, and MS.VS.RazorExtension is not something to emulate. 😄
There was a problem hiding this comment.
Yea... I didn't love writing it but wasn't able to come up with an alternative.
.../src/Microsoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspace/RazorWorkspaceListenerBase.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Endpoints/RazorFileChangedResponse.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorDynamicFileUpdate.cs
Outdated
Show resolved
Hide resolved
...or/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorLspDynamicFileInfoProvider.cs
Show resolved
Hide resolved
src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorWorkspaceService.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorWorkspaceService.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorWorkspaceService.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/RazorWorkspaceService.cs
Outdated
Show resolved
Hide resolved
…nto remove_razor_ea
| using System.Collections.Immutable; | ||
|
|
||
| namespace Microsoft.AspNetCore.Razor.ProjectEngineHost; | ||
| namespace Microsoft.CodeAnalysis.Razor.Workspaces.ProjectEngineHost; |
There was a problem hiding this comment.
This can be fixed later, but we generally don't add "Workspaces" into namespaces in MS.CA.Razor.Workspaces anymore. This should probably have been Microsoft.CodeAnalysis.Razor.ProjectEngineHost, but please feel free to fix that later or tell somebody else to do it. 😄
There was a problem hiding this comment.
Shouldn't this (and other files moved to this folder) switch to the Microsoft.CodeAnalysis.Razor.ProjectSystem namespace?
Depends on the following PRs: dotnet/razor#11510 dotnet/roslyn#77715
Razor side of dotnet/roslyn#77715
Microsoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspace, we no longer ship an EA for RoslynMicrosoft.VisualStudioCode.RazorExtensionand package that will be put in.razorExtensionin VS CodeMicrosoft.AspNetCore.Razor.ProjectEngineHostas that layer of separation is no longer neededCopilot description below
This pull request includes several changes to the
Razorproject, focusing on project restructuring and dependency updates. The most important changes include adding a new package version, renaming and removing projects, and updating theRazorWorkspaceListenerBaseclass.Project restructuring:
Razor.sln: RenamedMicrosoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspacetoMicrosoft.VisualStudioCode.RazorExtensionand removedMicrosoft.AspNetCore.Razor.ProjectEngineHostand its test project. [1] [2] [3]docs/ProjectsAndLayering.md: Updated documentation to reflect the new project name.Code updates:
RazorWorkspaceListenerBase.cs: Replaced_disposedwith_disposeTokenSource.IsCancellationRequestedfor better disposal handling and added_tagHelperResolverand_projectChecksumsfields. [1] [2] [3] [4]Project removals:
Microsoft.AspNetCore.Razor.ExternalAccess.RoslynWorkspaceproject and its related files. [1] [2] [3]