MCPcopy Create free account
hub / github.com/Microck/opencode-studio / updateLsp

Function updateLsp

client-next/src/app/settings/code/page.tsx:79–88  ·  view source on GitHub ↗
(id: string, next: any)

Source from the content-addressed store, hash-verified

77 }, [tools]);
78
79 const updateLsp = (id: string, next: any) => {
80 if (!config) return;
81 saveConfig({
82 ...config,
83 lsp: {
84 ...(config.lsp || {}),
85 [id]: { ...(config.lsp?.[id] || {}), ...next },
86 },
87 });
88 };
89
90 const updateFormatter = (id: string, next: any) => {
91 if (!config) return;

Callers 1

CodeSettingsPageFunction · 0.85

Calls 1

saveConfigFunction · 0.50

Tested by

no test coverage detected