Skip to content

Commit d35053c

Browse files
authored
chore(lsp): fix incorrect comment (#1073)
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 2c720c4 commit d35053c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lsp/src/text_document.ml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ type invalid_utf = String_zipper.invalid_utf =
1616

1717
exception Invalid_utf = String_zipper.Invalid_utf
1818

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-
2319
type t =
2420
{ languageId : string
25-
; mutable text : string option
21+
; (* text is stored as utf8 internally no matter what the encoding is *)
22+
mutable text : string option
2623
; uri : DocumentUri.t
2724
; version : int
2825
; mutable zipper : String_zipper.t

0 commit comments

Comments
 (0)