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

Function withDerivedContext

src/cm/lsp/runtimeProviders.ts:79–88  ·  view source on GitHub ↗
(
	server: LspServerDefinition,
	context: LspRuntimeContext = {},
)

Source from the content-addressed store, hash-verified

77}
78
79function withDerivedContext(
80 server: LspServerDefinition,
81 context: LspRuntimeContext = {},
82): LspRuntimeContext {
83 return {
84 ...context,
85 serverId: context.serverId || server.id,
86 workspaceKind: context.workspaceKind || inferWorkspaceKind(context),
87 };
88}
89
90export function registerRuntimeProvider(
91 provider: LspRuntimeProvider,

Callers 1

selectRuntimeProviderFunction · 0.85

Calls 1

inferWorkspaceKindFunction · 0.85

Tested by

no test coverage detected