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

Prepare for variable refactorings #4679

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tobias-tengler
Copy link
Contributor

Depends on #4509

At the moment all diagnostic fixes are simply replacing what's under the cursor with suggestions from the diagnostic data. In order to support more complex refactorings we need to be able to identify the kind of diagnostic we're dealing with when creating a code action.
This adds code to the diagnostic as a way to identify a specific diagnostic we want to act upon. Also when resolving a document you now get access to the full Location and not just the position span. This is necessary to later map from modifications done to a document (which consists of relative spans) to a full LSP location.

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

Successfully merging this pull request may close these issues.

None yet

2 participants