You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That call to AddProject will use the FallbackConfiguration.Latest, since there is no facility to provide a different one, but we do have the right one deserialized from the project.razor.json file. The EnqueueUpdateProject method a few lines later should be presumably updating the added project with the right configuration, but either a) thats not happening, b) thats not happening fast enough, or c) nobody is being notified that it happened. Not sure which.
The text was updated successfully, but these errors were encountered:
Found while investigating #8572, and probably the root cause.
Steps to repro:
@typeparam
directive with a where clauseActual:
Errors
Expected:
No errors
The above PR mitigated the issue by making the "Latest" configuration actually be latest, which is fine, but I suspect we shouldn't be using the fallback config anyway. One possible place where the issue shows up is here:
https://github.com/dotnet/razor/blob/main/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationStateSynchronizer.cs#L127
That call to
AddProject
will use theFallbackConfiguration.Latest
, since there is no facility to provide a different one, but we do have the right one deserialized from the project.razor.json file. TheEnqueueUpdateProject
method a few lines later should be presumably updating the added project with the right configuration, but either a) thats not happening, b) thats not happening fast enough, or c) nobody is being notified that it happened. Not sure which.The text was updated successfully, but these errors were encountered: