(serverId, clientConfig)
| 471 | } |
| 472 | |
| 473 | async 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 | |
| 484 | async function persistStartupTimeout(serverId, timeout) { |
| 485 | await updateServerConfig(serverId, { startupTimeout: timeout }); |
no test coverage detected