mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
Fix: Set OPENCODE_CALLER env in a more portable way for vscode extension (#2230)
This commit is contained in:
@@ -53,11 +53,12 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
_EXTENSION_OPENCODE_PORT: port.toString(),
|
_EXTENSION_OPENCODE_PORT: port.toString(),
|
||||||
|
OPENCODE_CALLER: "vscode",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
terminal.show()
|
terminal.show()
|
||||||
terminal.sendText(`OPENCODE_CALLER=vscode opencode --port ${port}`)
|
terminal.sendText(`opencode --port ${port}`)
|
||||||
|
|
||||||
const fileRef = getActiveFile()
|
const fileRef = getActiveFile()
|
||||||
if (!fileRef) return
|
if (!fileRef) return
|
||||||
|
|||||||
Reference in New Issue
Block a user