refactor(tools): rename all tools to snake_case for consistency

This commit is contained in:
YeonGyu-Kim
2025-12-04 22:54:13 +09:00
parent f78bdf6f67
commit ff3a7bfee0
12 changed files with 597 additions and 3 deletions
+11
View File
@@ -53,6 +53,17 @@ export async function withLspClient<T>(filePath: string, fn: (client: LSPClient)
try {
return await fn(client)
} catch (e) {
if (e instanceof Error && e.message.includes("timeout")) {
const isInitializing = lspManager.isServerInitializing(root, server.id)
if (isInitializing) {
throw new Error(
`LSP server is still initializing. Please retry in a few seconds. ` +
`Original error: ${e.message}`
)
}
}
throw e
} finally {
lspManager.releaseClient(root, server.id)
}