We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c720c4 commit d35053cCopy full SHA for d35053c
lsp/src/text_document.ml
@@ -16,13 +16,10 @@ type invalid_utf = String_zipper.invalid_utf =
16
17
exception Invalid_utf = String_zipper.Invalid_utf
18
19
-(* Text is received as UTF-8. However, the protocol specifies offsets should be
20
- computed based on UTF-16. Therefore we reencode every file into utf16 for
21
- analysis. *)
22
-
23
type t =
24
{ languageId : string
25
- ; mutable text : string option
+ ; (* text is stored as utf8 internally no matter what the encoding is *)
+ mutable text : string option
26
; uri : DocumentUri.t
27
; version : int
28
; mutable zipper : String_zipper.t
0 commit comments