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

Function register

src/cm/lsp/api.ts:43–52  ·  view source on GitHub ↗
(
	entry: LspRegistrationEntry,
	options?: RegisterServerOptions & { replace?: boolean },
)

Source from the content-addressed store, hash-verified

41}
42
43export function register(
44 entry: LspRegistrationEntry,
45 options?: RegisterServerOptions & { replace?: boolean },
46): LspServerDefinition | LspServerBundle {
47 if (isBundleEntry(entry)) {
48 return registerServerBundle(entry, options);
49 }
50
51 return registerServer(entry, options);
52}
53
54export function upsert(
55 entry: LspRegistrationEntry,

Callers 1

upsertFunction · 0.85

Calls 4

registerServerBundleFunction · 0.90
registerServerFunction · 0.90
registerRuntimeProviderFunction · 0.90
isBundleEntryFunction · 0.85

Tested by

no test coverage detected