Skip to content

Commit 979c9ea

Browse files
committed
lsp: fix root detection to use instance directory instead of worktree
1 parent c0bd291 commit 979c9ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/opencode/src/lsp/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ export namespace LSPServer {
2525
const files = Filesystem.up({
2626
targets: patterns,
2727
start: path.dirname(file),
28-
stop: Instance.worktree,
28+
stop: Instance.directory,
2929
})
3030
const first = await files.next()
3131
await files.return()
32-
if (!first.value) return Instance.worktree
32+
if (!first.value) return Instance.directory
3333
return path.dirname(first.value)
3434
}
3535
}

0 commit comments

Comments
 (0)