Skip to content

Commit 9a6b455

Browse files
chore: generate
1 parent 8063e0b commit 9a6b455

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • packages/opencode/src/tool

packages/opencode/src/tool/lsp.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ export const LspTool = Tool.defineEffect(
3535
line: z.number().int().min(1).describe("The line number (1-based, as shown in editors)"),
3636
character: z.number().int().min(1).describe("The character offset (1-based, as shown in editors)"),
3737
}),
38-
execute: (args: { operation: (typeof operations)[number]; filePath: string; line: number; character: number }, ctx: Tool.Context) =>
38+
execute: (
39+
args: { operation: (typeof operations)[number]; filePath: string; line: number; character: number },
40+
ctx: Tool.Context,
41+
) =>
3942
Effect.gen(function* () {
4043
const file = path.isAbsolute(args.filePath) ? args.filePath : path.join(Instance.directory, args.filePath)
4144
yield* assertExternalDirectoryEffect(ctx, file)
42-
yield* Effect.promise(() =>
43-
ctx.ask({ permission: "lsp", patterns: ["*"], always: ["*"], metadata: {} }),
44-
)
45+
yield* Effect.promise(() => ctx.ask({ permission: "lsp", patterns: ["*"], always: ["*"], metadata: {} }))
4546

4647
const uri = pathToFileURL(file).href
4748
const position = { file, line: args.line - 1, character: args.character - 1 }

0 commit comments

Comments
 (0)