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

Function getPriority

src/cm/lsp/runtimeProviders.ts:57–60  ·  view source on GitHub ↗
(provider: LspRuntimeProvider)

Source from the content-addressed store, hash-verified

55}
56
57function getPriority(provider: LspRuntimeProvider): number {
58 const priority = Number(provider.priority);
59 return Number.isFinite(priority) ? priority : 0;
60}
61
62function getAllowedRuntimes(server: LspServerDefinition): Set<string> | null {
63 if (!Array.isArray(server.runtimes) || !server.runtimes.length) {

Callers 1

listRuntimeProvidersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected