You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
While tracking down what character was supposed to mean for the protocol I also looked at what rls did to see if there was a easy way to handle this but from what I understand from the source I don't think this is handled in any way.
The language server protocol specifies that that
character
positions are in UTF-16 code units (see https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#text-documents). I encountered this after crashing https://github.com/gluon-lang/gluon_language-server due to accidentally typing a multi byte character.While tracking down what
character
was supposed to mean for the protocol I also looked at whatrls
did to see if there was a easy way to handle this but from what I understand from the source I don't think this is handled in any way.https://github.com/rust-lang-nursery/rls/blob/9782aa4c3c5b203732b9a1a4f3c9d7fbc912e437/src/actions/requests.rs#L1005
https://github.com/rust-lang-nursery/rls/blob/41bf9af09ccc9cbbe8a67a375f0f7fe3196dbabf/src/lsp_data.rs#L100
Feel free to just close this If I am mistaken, I figured I'd at least open an issue in case this needs to be handled.
The text was updated successfully, but these errors were encountered: