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

fix(lsp): emit text edits when formatting #4398

Merged
merged 1 commit into from
Oct 27, 2024
Merged

Conversation

ematipico
Copy link
Member

Summary

Closes #4393

The changes are minimal, and we already have some logic that creates text exits out of a diff.

Test Plan

The current tests pass. I tested locally and nothing breaks.

@github-actions github-actions bot added the A-LSP Area: language server protocol label Oct 27, 2024
@ematipico ematipico merged commit 054984c into main Oct 27, 2024
10 checks passed
@ematipico ematipico deleted the fix/lsp-formatting-edits branch October 27, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LSP Area: language server protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📝 Formatting via LSP sends full text instead of text edits, resulting in loss of editor-related metadata
3 participants