mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
Fix: Set OPENCODE_CALLER env in a more portable way for vscode extension (#2230)
This commit is contained in:
parent
c7e5d29109
commit
4b429029df
@ -53,11 +53,12 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
},
|
||||
env: {
|
||||
_EXTENSION_OPENCODE_PORT: port.toString(),
|
||||
OPENCODE_CALLER: "vscode",
|
||||
},
|
||||
})
|
||||
|
||||
terminal.show()
|
||||
terminal.sendText(`OPENCODE_CALLER=vscode opencode --port ${port}`)
|
||||
terminal.sendText(`opencode --port ${port}`)
|
||||
|
||||
const fileRef = getActiveFile()
|
||||
if (!fileRef) return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user