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 numerous cases of incorrect utf16 positions returned and passed into elixir_sense #677

Merged
merged 2 commits into from
Feb 19, 2022

Conversation

lukaszsamson
Copy link
Collaborator

I'm in favour of switching to utf8 positions when it is in spec. However, it will remain optional and servers should default to utf16 so eventually we'll end with 2 options.

I reviewed all the places I could find where we return or take as arguments positions. Where conversions was needed I added them. Otherwise I left comments. It will be easier to later add overloads for SourceFile helpers that work in utf8.

Addresses #244

@lukaszsamson lukaszsamson merged commit 6057d36 into master Feb 19, 2022
@lukaszsamson lukaszsamson deleted the ls-utf16 branch February 19, 2022 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant