lspeasy / core/src / supportsNotebookDocumentSync
Function: supportsNotebookDocumentSync()
ts
function supportsNotebookDocumentSync(capabilities): capabilities is ServerCapabilities<any> & { notebookDocumentSync: NonNullable<NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions | undefined> };Defined in: packages/core/src/protocol/capabilities.ts:278
Helper to check if notebook document sync is supported by the server.
Parameters
| Parameter | Type | Description |
|---|---|---|
capabilities | ServerCapabilities | The server capabilities to check. |
Returns
capabilities is ServerCapabilities<any> & { notebookDocumentSync: NonNullable<NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions | undefined> }
true when notebookDocumentSync is declared (not null/undefined).