-
Notifications
You must be signed in to change notification settings - Fork 196
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
Comprehensive approach to utf-16 positions #244
Comments
I stumbled on this issue in definition provider. I think it's safe to assume formatting is not the only place that handle this incorrectly. Fortunately this bug rarely manifests. |
I went through the sources and identified many places where we either return incorrect positions or incorrectly pass positions to ElixirSense or other downstream processing. List of possible issues (probably not exhaustive):
Fortunately there is some traction on UTF8 positions support, see microsoft/language-server-protocol#376 (comment) |
Yeah, I'm kind of thinking that we drop/deprecated UTF-16 support. I think that the majority of clients that people are using support UTF-8 and that would simplify (and speed up) ElixirLS. |
I'm closing this one. We'll open a separate issue when utf8 positions are in spec |
#200 added support for utf-16 formatting. However, it can be improved to be more comprehensive and better tested with automated tests. We should also double check that we've gotten all the places that utf-16 translation is needed.
The text was updated successfully, but these errors were encountered: