-
Notifications
You must be signed in to change notification settings - Fork 195
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
Preprocessor directives don't flow from the IDE to the compiler #11120
Comments
❓ is there a reason we don't just add |
Yes, just serialization. We need Json and MessagePack serialization for it, which it doesn't natively support, so we'd have to write out own formatters, and that would mean keeping up with new properties added to it, which sounds like a future bug farm when someone pulls on a random property from CSharpParseOptions, not realising we didn't serialize that one, so they get the default value in the IDE, and expected value in the command line. |
@333fred Please take a look. |
@davidwengier @chsienki I'm sorry, but I have absolutely no idea what the actual ask here is. What is this issue actually tracking, and what are we expecting to do about it? |
Right now the Razor compiler takes in |
This isn't something we can do; we should use the real |
When the new Roslyn tokenizer is enabled in the compiler, it also requires a
CSharpParseOptions
to be provided. Currently the IDE does not serialize this information across the wire, so the language server cannot supply the right one for IDE scenarios, and users get default behaviour.It would be good if we can focus the compiler dependency down to just what is needed (proprocessor directives is a best guess) and then ensure we are including that information in the
RazorConfiguration
that the IDE provides.And if we're changing how
UseRoslynTokenizer
gets to the compiler, it would be worth reviewing this comment too:#11092 (comment)
The text was updated successfully, but these errors were encountered: