RLovelett / langserver-swift

A Swift implementation of the open Language Server Protocol.
Apache License 2.0
177 stars 16 forks source link

Use International Components for Unicode (ICU) to parse line breaks #51

Open RLovelett opened 6 years ago

RLovelett commented 6 years ago

I am trying to improve the robustness of the selection(startAt:,length:) and byteOffset(at:) which had a tendency to not be able to translate positions over time.

[Error - 1:51:10 PM] Request textDocument/completion failed.
  Message: Could not find the text in the source file.
  Code: -32098 
[Error - 1:51:21 PM] Request textDocument/completion failed.
  Message: Could not find the text in the source file.
  Code: -32098 
[Error - 1:51:23 PM] Request textDocument/completion failed.
  Message: Could not find the text in the source file.
  Code: -32098

These errors.