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
I am trying to improve the robustness of the
selection(startAt:,length:)
andbyteOffset(at:)
which had a tendency to not be able to translate positions over time.These errors.