Skip to content
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

Various IDE scenarios will stop working without document services #8845

Open
Tracked by #6919
davidwengier opened this issue Jun 20, 2023 · 0 comments
Open
Tracked by #6919

Comments

@davidwengier
Copy link
Contributor

davidwengier commented Jun 20, 2023

After #6919 is implemented we will no longer have any document services running in Roslyn, which means no span mapping service, which means, for example, when Roslyn performs a rename that touches a generated file, it won't call us to map the edits to the corresponding Razor file. This would also affect things like Go to Definition, Find All References, etc.

All of the information is available in the #line mappings in the generated file (especially if we enable enhanced line mappings) so potentially we could get Roslyn to host a span mapping service of a fashion, that is hooked up via the source generator, but that seems a lot like the document services approach that Roslyn wants to move away from.

Other ideas welcome.

See also #8671, though that only requires any kind of span mapping service to be present, rather than an actual working service.

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