do not wait for LSP to be fully ready

This commit is contained in:
Dax Raad
2025-07-09 21:58:24 -04:00
parent a826936702
commit 0ee3b1ede2
3 changed files with 4 additions and 11 deletions

View File

@@ -14,13 +14,7 @@ export namespace Mode {
})
.optional(),
prompt: z.string().optional(),
tools: z
.object({
write: z.boolean().optional(),
edit: z.boolean().optional(),
patch: z.boolean().optional(),
})
.optional(),
tools: z.record(z.boolean()),
})
.openapi({
ref: "Mode",
@@ -61,6 +55,7 @@ export namespace Mode {
if (value.prompt) item.prompt = await Bun.file(value.prompt).text()
if (value.tools) item.tools = value.tools
}
return result
})