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

Function persistClientConfig

src/settings/lspServerDetail.js:473–482  ·  view source on GitHub ↗
(serverId, clientConfig)

Source from the content-addressed store, hash-verified

471}
472
473async function persistClientConfig(serverId, clientConfig) {
474 await updateServerConfig(serverId, { clientConfig });
475 lspApi.servers.update(serverId, (current) => ({
476 ...current,
477 clientConfig: {
478 ...(current.clientConfig || {}),
479 ...clientConfig,
480 },
481 }));
482}
483
484async function persistStartupTimeout(serverId, timeout) {
485 await updateServerConfig(serverId, { startupTimeout: timeout });

Callers 1

callbackFunction · 0.85

Calls 2

updateServerConfigFunction · 0.90
updateMethod · 0.45

Tested by

no test coverage detected