mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-11 21:41:36 +00:00
fix: add directory parameter to plugin client for multi-project support (#11344)
Co-authored-by: cooooooooooode <187372691+cooooooooooode@users.noreply.github.com>
This commit is contained in:
parent
2c58dd6203
commit
53298145a2
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ export namespace Plugin {
|
|||
const state = Instance.state(async () => {
|
||||
const client = createOpencodeClient({
|
||||
baseUrl: "http://localhost:4096",
|
||||
directory: Instance.directory,
|
||||
// @ts-ignore - fetch type incompatibility
|
||||
fetch: async (...args) => Server.App().fetch(...args),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue