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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LspConnectionPool(
options?):LspConnectionPool
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”LspConnectionPool
Methods
Section titled “Methods”acquire()
Section titled “acquire()”acquire(
key,options,callbacks):LspConnectionLease
Parameters
Section titled “Parameters”string
options
Section titled “options”callbacks
Section titled “callbacks”Returns
Section titled “Returns”dispose()
Section titled “dispose()”dispose():
void
Closes every connection. For teardown and for tests, not for routine use.
Returns
Section titled “Returns”void
provider()
Section titled “provider()”provider(
key):LspConnectionProvider
A provider bound to one key, in the shape the plugin takes.
Parameters
Section titled “Parameters”string