Skip to content

Commit 2c720c4

Browse files
authored
feature(lsp): add [Text_document.position_encoding] (#1072)
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent d972723 commit 2c720c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lsp/src/text_document.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ type t =
2929
; position_encoding : [ `UTF8 | `UTF16 ]
3030
}
3131

32+
let position_encoding t = t.position_encoding
33+
3234
let make ~position_encoding
3335
{ DidOpenTextDocumentParams.textDocument =
3436
{ TextDocumentItem.languageId; text; uri; version }

lsp/src/text_document.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ val languageId : t -> string
99

1010
val documentUri : t -> Uri0.t
1111

12+
val position_encoding : t -> [ `UTF16 | `UTF8 ]
13+
1214
val version : t -> int
1315

1416
val text : t -> string

0 commit comments

Comments
 (0)