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

Move RootNamespace from HostProject to RazorConfiguration #11109

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

davidwengier
Copy link
Contributor

Follow up to #11092

Nerd sniped myself I guess.

@davidwengier davidwengier requested review from a team as code owners October 29, 2024 08:51
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.

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.

Copy link
Contributor

@chsienki chsienki left a 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)
Copy link
Member

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?

Copy link
Contributor Author

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.

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.

4 participants