lspeasy / client/src / NotificationWaitOptions
Interface: NotificationWaitOptions<TParams>
Defined in: packages/client/src/notifications/wait.ts:8
Options for NotificationWaiter and LSPClient.waitForNotification.
Config
Type Parameters
| Type Parameter | Description |
|---|---|
TParams | The notification params type for the awaited method. |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
filter? | (params) => boolean | Optional predicate to skip notifications that don't match the expected content. The waiter continues listening until a matching notification arrives or the timeout expires. | packages/client/src/notifications/wait.ts:18 |
timeout | number | Maximum time to wait in milliseconds before rejecting with a timeout error. | packages/client/src/notifications/wait.ts:12 |