-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
FullyQualifyNamespace light bulb does not appear in certain contexts #20397
Comments
I've isolated this issue and have been able to reproduce it in a vanilla MVC project. Inspecting the https://github.com/OmniSharp/omnisharp-vscode/blob/master/src/features/codeActionProvider.ts#L29 This indicates dotnet/roslyn itself isn't providing the underlying |
Given this, we can either keep the behavior as is, or remove the filtering we do for the code actions shown to the user: Are there any preferences for this? @ryanbrandenburg @NTaylorMullen @ajaybhargavb |
Really thorough investigation, nice job Tanay! We need to keep the filtering as-is because we don't support every light bulb diagnostic. Given this is "by design" from Roslyn's perspective we want to treat it the same as well. I'd close this issue as by-design. |
Secret option number 3 might be to just add this new CS-code that we've verified to the list of allowable codes on that Translator. That way this scenario works as expected but we also aren't allowing untested CodeActions through. |
@ryanbrandenburg we'd have to allow either:
in addition to the existing I think it may be fine to leave our logic as is, to maintain feature parity with Roslyn if you're okay with that? |
Sounds totally reasonable, just wanted to give it as an options. |
Thanks for the feedback! Closing out as "by design" in Roslyn dotnet/roslyn#42974 (comment). |
This issue is a branch off of the work in #19449 however it addresses a seperate underlying issue highlighted by @ajaybhargavb (link).
Reproduce:
dotnet new blazorserver
Counter.razor
RenderTree
.Invoke the FullyQualifyNamespace light bulb
Expected:
Actual:
The text was updated successfully, but these errors were encountered: