mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 07:03:45 +00:00
do not wait for LSP to be fully ready
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user