LspServer constructor

LspServer(
  1. LspEndpoint _endpoint
)

Creates a server over any LspEndpointStreamLspEndpoint for stdio, or MessageLspEndpoint for a web IDE / AI-agent host.

Implementation

LspServer(this._endpoint) {
  _endpoint.onRequest = _handleRequest;
  _endpoint.onNotification = _handleNotification;
}