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

Add positionEncoding support when calculating diffs #409

Merged
merged 6 commits into from
Jan 9, 2024

Conversation

karthiknadig
Copy link
Member

@karthiknadig karthiknadig commented Jan 5, 2024

Fixes #395

@karthiknadig karthiknadig self-assigned this Jan 5, 2024
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Jan 5, 2024
@karthiknadig
Copy link
Member Author

@charliermarsh This might be relevant for Ruff diff calculation for formatting with LSP. The ranges in TextEdits have to be calculated using encoding selected in positionEncoding filed of client and server capability. There are 3 possible encodings supported for IDEs. VS Code itself only supports UTF-16.

@karthiknadig karthiknadig marked this pull request as ready for review January 9, 2024 17:27
@VSCodeTriageBot VSCodeTriageBot added this to the December / January 2024 milestone Jan 9, 2024
joyceerhl
joyceerhl previously approved these changes Jan 9, 2024
@karthiknadig karthiknadig merged commit 8098bce into microsoft:main Jan 9, 2024
20 checks passed
@karthiknadig karthiknadig deleted the enc1 branch January 16, 2024 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Black does not format correctly strings containing emojis
3 participants