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

Function persistInitOptions

src/settings/lspServerDetail.js:492–498  ·  view source on GitHub ↗
(serverId, value)

Source from the content-addressed store, hash-verified

490}
491
492async function persistInitOptions(serverId, value) {
493 await updateServerConfig(serverId, { initializationOptions: value });
494 lspApi.servers.update(serverId, (current) => ({
495 ...current,
496 initializationOptions: value,
497 }));
498}
499
500export default function lspServerDetail(serverId) {
501 const initialServer = lspApi.servers.get(serverId);

Callers 1

callbackFunction · 0.85

Calls 2

updateServerConfigFunction · 0.90
updateMethod · 0.45

Tested by

no test coverage detected