MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getProvider

Function getProvider

src/cm/lsp/runtimeActions.ts:22–31  ·  view source on GitHub ↗
(
	server: LspServerDefinition,
	context: LspRuntimeContext = {},
	runtimeAction?: LspRuntimeContext["runtimeAction"],
)

Source from the content-addressed store, hash-verified

20}
21
22async function getProvider(
23 server: LspServerDefinition,
24 context: LspRuntimeContext = {},
25 runtimeAction?: LspRuntimeContext["runtimeAction"],
26): Promise<LspRuntimeProvider | null> {
27 return selectRuntimeProvider(
28 server,
29 getSettingsContext(server, context, runtimeAction),
30 );
31}
32
33export async function checkRuntimeServerInstallation(
34 server: LspServerDefinition,

Callers 6

installRuntimeServerFunction · 0.85
uninstallRuntimeServerFunction · 0.85
getRuntimeInstallCommandFunction · 0.85
getRuntimeLabelForServerFunction · 0.85

Calls 2

selectRuntimeProviderFunction · 0.90
getSettingsContextFunction · 0.85

Tested by

no test coverage detected