add typescript lsp timeout if it fails to start

This commit is contained in:
Dax Raad
2025-07-08 18:33:12 -04:00
parent 4a878b88c0
commit 00ea5082e7
2 changed files with 7 additions and 2 deletions

View File

@@ -53,7 +53,10 @@ export namespace LSP {
serverID: server.id,
server: handle,
root,
}).catch((err) => log.error("", { error: err }))
}).catch((err) => {
handle.process.kill()
log.error("", { error: err })
})
if (!client) break
clients.push(client)
}