Skip to content

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

PropertyTypeDescriptionDefined in
currentConnectionStateThe state the connection has transitioned into.packages/client/src/connection/types.ts:87
previousConnectionStateThe state the connection was in before this transition.packages/client/src/connection/types.ts:85
reason?stringOptional human-readable description of why the state changed.packages/client/src/connection/types.ts:91
timestampDateWall-clock time at which the state transition occurred.packages/client/src/connection/types.ts:89

Released under the MIT License.