Skip to content

[VS Code] [Cohosting] C# code actions with fix all support don't work #11832

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

Open
davidwengier opened this issue May 7, 2025 · 0 comments
Open

Comments

@davidwengier
Copy link
Member

Roslyn has custom commands in VS Code that handle fix all in code actions, and that system doesn't work for Razor documents.

The command routes the request to Roslyn's code action resolve endpoint, so we probably just need to detect that the code action is happening in a Razor document, and route the request through to Razor. In theory we would do this by wrapping the data in the request and adding a document, and whatever else Razor requires, then the request would be routed to Razor, unwrapped, and it would route to the Roslyn code action resolve endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants