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

Function getSettingsContext

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

Source from the content-addressed store, hash-verified

7} from "./types";
8
9function getSettingsContext(
10 server: LspServerDefinition,
11 context: LspRuntimeContext = {},
12 runtimeAction: LspRuntimeContext["runtimeAction"] = "command",
13): LspRuntimeContext {
14 return {
15 ...context,
16 serverId: context.serverId || server.id,
17 allowNonTerminalWorkspace: true,
18 runtimeAction,
19 };
20}
21
22async function getProvider(
23 server: LspServerDefinition,

Callers 6

getProviderFunction · 0.85
installRuntimeServerFunction · 0.85
uninstallRuntimeServerFunction · 0.85
getRuntimeInstallCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected