-
Notifications
You must be signed in to change notification settings - Fork 198
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
Move RootNamespace from HostProject to RazorConfiguration #11109
base: main
Are you sure you want to change the base?
Conversation
This should probably have been in the previous PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this change so much! I found a few small issues, but most are small bits of additional clean up. I'd appreciate it if you could take my suggestions in the Message Pack formatters before merging though.
....Razor.ProjectEngineHost/Serialization/MessagePack/Formatters/RazorConfigurationFormatter.cs
Outdated
Show resolved
Hide resolved
....Razor.ProjectEngineHost/Serialization/MessagePack/Formatters/RazorConfigurationFormatter.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.ProjectEngineHost/Utilities/RazorProjectInfoFactory.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/ProjectState.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/ProjectState.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteProjectSnapshot.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiler side LGTM
@@ -16,7 +16,8 @@ public sealed record class RazorConfiguration( | |||
bool SuppressAddComponentParameter = false, | |||
LanguageServerFlags? LanguageServerFlags = null, | |||
bool UseRoslynTokenizer = false, | |||
LanguageVersion CSharpLanguageVersion = LanguageVersion.Default) | |||
LanguageVersion CSharpLanguageVersion = LanguageVersion.Default, | |||
string? RootNamespace = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this isn't referenced anywhere from the compiler layer; why does it need to be in the compiler's RazorConfiguration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RazorConfiguration
serves double duty right now, as the thing that the compiler reads some things from, and the type that stores all of the compiler configuration knobs that are serialized between the IDE host and the LSP server. There has been much discussion about removing the configure
lambdas for configuring the compiler, and moving to fully utilise the RazorConfiguration
, so this is something of a hedge towards that.
Follow up to #11092
Nerd sniped myself I guess.