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

Function canProviderRunServer

src/cm/lsp/runtimeProviders.ts:70–77  ·  view source on GitHub ↗
(
	provider: LspRuntimeProvider,
	server: LspServerDefinition,
)

Source from the content-addressed store, hash-verified

68}
69
70function canProviderRunServer(
71 provider: LspRuntimeProvider,
72 server: LspServerDefinition,
73): boolean {
74 const allowed = getAllowedRuntimes(server);
75 if (allowed) return allowed.has(provider.id);
76 return true;
77}
78
79function withDerivedContext(
80 server: LspServerDefinition,

Callers 1

selectRuntimeProviderFunction · 0.85

Calls 1

getAllowedRuntimesFunction · 0.85

Tested by

no test coverage detected