Closed leitzler closed 6 months ago
In TextDocumentContentChangeEvent, the Range property isn't optional: https://github.com/microsoft/language-server-protocol/blob/80b9d4afb6c60a5e19d8c2faee3e5b28cfb50735/_specifications/lsp/3.18/textDocument/didChange.md?plain=1#L74
But the comment above do state that the event can be sent with only text:
text
/** * An event describing a change to a text document. If only a text is provided * it is considered to be the full content of the document. */
This is covered by the OR type
| { /** * The new text of the whole document. */ text: string; }
In TextDocumentContentChangeEvent, the Range property isn't optional: https://github.com/microsoft/language-server-protocol/blob/80b9d4afb6c60a5e19d8c2faee3e5b28cfb50735/_specifications/lsp/3.18/textDocument/didChange.md?plain=1#L74
But the comment above do state that the event can be sent with only
text
: