This commit is contained in:
Simon Cruanes 2025-04-07 14:03:39 -04:00
parent d7dd8ecec0
commit 691eac4863
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -627,7 +627,8 @@ module Make (IO : IO) = struct
IO.return ()
(** Override to handle unprocessed notifications *)
method filter_text_document (_doc_uri: Lsp.Types.DocumentUri.t) : bool = true
method filter_text_document (_doc_uri : Lsp.Types.DocumentUri.t) : bool =
true
(** Filter the document URI to check if we want to process it or not.
By default we accept all documents. *)
@ -723,8 +724,8 @@ module Make (IO : IO) = struct
Lsp.Text_document.make ~position_encoding:positionEncoding
(DidOpenTextDocumentParams.create
~textDocument:
(TextDocumentItem.create ~languageId ~uri:doc.uri ~version
~text:""))
(TextDocumentItem.create ~languageId ~uri:doc.uri
~version ~text:""))
| Some st ->
Lsp.Text_document.make ~position_encoding:positionEncoding
(DidOpenTextDocumentParams.create