lspeasy / client/src / StateChangeEvent
Interface: StateChangeEvent
Defined in: packages/client/src/connection/types.ts:83
Payload emitted when the connection state changes. Subscribe via LSPClient.onConnectionStateChange().
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
current | ConnectionState | The state the connection has transitioned into. | packages/client/src/connection/types.ts:87 |
previous | ConnectionState | The state the connection was in before this transition. | packages/client/src/connection/types.ts:85 |
reason? | string | Optional human-readable description of why the state changed. | packages/client/src/connection/types.ts:91 |
timestamp | Date | Wall-clock time at which the state transition occurred. | packages/client/src/connection/types.ts:89 |