mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix: detect VS Code variant from VSCODE_IPC_HOOK instead of which
This commit is contained in:
@@ -29,5 +29,6 @@ try {
|
||||
}
|
||||
|
||||
const vsix = (await $`ls -1v ${outDir}/*.vsix`.text()).trim().split("\n").at(-1)!
|
||||
const codeCmd = (await $`which code-insiders`.nothrow().text()).trim() ? "code-insiders" : "code"
|
||||
await $`${codeCmd} --force --install-extension ${vsix}`
|
||||
const ipc = process.env.VSCODE_IPC_HOOK ?? ""
|
||||
const cli = ipc.includes("Insiders") ? "code-insiders" : "code"
|
||||
await $`${cli} --force --install-extension ${vsix}`
|
||||
|
||||
Reference in New Issue
Block a user