Skip to content

LspConnectionPool

One connection per key, outliving the views that borrow it. A view contribution is rebuilt on every file switch, and a connection it owns dies with it — thirteen handshakes in twenty-two seconds, measured. The key is opaque: how a server session is named is the host’s vocabulary.

new LspConnectionPool(options?): LspConnectionPool

LspConnectionPoolOptions

LspConnectionPool

acquire(key, options, callbacks): LspConnectionLease

string

LspConnectionOptions

LspConnectionCallbacks

LspConnectionLease


dispose(): void

Closes every connection. For teardown and for tests, not for routine use.

void


provider(key): LspConnectionProvider

A provider bound to one key, in the shape the plugin takes.

string

LspConnectionProvider