Skip to content

lspeasy / core/src / discoverServers

Function: discoverServers()

ts
function discoverServers(root): ConfiguredServer[];

Defined in: packages/core/src/discover.ts:207

Enumerate every server configured in the discovered lsp.json. Unlike discoverServer, which resolves a single server, this returns the full set so callers can present available languages without connecting.

Parameters

ParameterType
rootstring

Returns

ConfiguredServer[]

Released under the MIT License.