summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-10 14:08:27 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-10 14:08:27 +0000
commit9a6b455bfe0a4ad4ab45382e4cfb1be1e797723f (patch)
treef7686cf0741bb45c4ef1014136f946f50d7a2a6c
parent8063e0b5c67de4622c3c77867c84734260f220fe (diff)
downloadopencode-9a6b455bfe0a4ad4ab45382e4cfb1be1e797723f.tar.gz
opencode-9a6b455bfe0a4ad4ab45382e4cfb1be1e797723f.zip
chore: generate
-rw-r--r--packages/opencode/src/tool/lsp.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/opencode/src/tool/lsp.ts b/packages/opencode/src/tool/lsp.ts
index f58dc82d4..ac0b4c6fc 100644
--- a/packages/opencode/src/tool/lsp.ts
+++ b/packages/opencode/src/tool/lsp.ts
@@ -35,13 +35,14 @@ export const LspTool = Tool.defineEffect(
line: z.number().int().min(1).describe("The line number (1-based, as shown in editors)"),
character: z.number().int().min(1).describe("The character offset (1-based, as shown in editors)"),
}),
- execute: (args: { operation: (typeof operations)[number]; filePath: string; line: number; character: number }, ctx: Tool.Context) =>
+ execute: (
+ args: { operation: (typeof operations)[number]; filePath: string; line: number; character: number },
+ ctx: Tool.Context,
+ ) =>
Effect.gen(function* () {
const file = path.isAbsolute(args.filePath) ? args.filePath : path.join(Instance.directory, args.filePath)
yield* assertExternalDirectoryEffect(ctx, file)
- yield* Effect.promise(() =>
- ctx.ask({ permission: "lsp", patterns: ["*"], always: ["*"], metadata: {} }),
- )
+ yield* Effect.promise(() => ctx.ask({ permission: "lsp", patterns: ["*"], always: ["*"], metadata: {} }))
const uri = pathToFileURL(file).href
const position = { file, line: args.line - 1, character: args.character - 1 }