(serverId?: string)
| 658 | } |
| 659 | |
| 660 | export function resetInstallState(serverId?: string): void { |
| 661 | if (!serverId) { |
| 662 | checkedCommands.clear(); |
| 663 | return; |
| 664 | } |
| 665 | |
| 666 | const prefix = `${serverId}:`; |
| 667 | for (const key of Array.from(checkedCommands.keys())) { |
| 668 | if (key.startsWith(prefix)) { |
| 669 | checkedCommands.delete(key); |
| 670 | } |
| 671 | } |
| 672 | } |
| 673 | |
| 674 | async function ensureInstalled(server: LspServerDefinition): Promise<boolean> { |
| 675 | const launcher = server.launcher; |
no test coverage detected