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