Skip to content

Roslyn doesn't run rename on source generated documents #11831

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

Roslyn doesn't run rename on source generated documents #11831

davidwengier opened this issue May 7, 2025 · 0 comments

Comments

@davidwengier
Copy link
Member

There are explicit if (document is SourceGeneratedDocument) checks in Roslyn that just cause rename to no-op on those documents. We need to find all of them, and surgically replace them with some kind of "if-source-generated-but-not-Razor" check.

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