vscode: Add VS Code Insiders support (#4019)

This commit is contained in:
Jinhyeok Lee
2025-11-08 01:31:16 +09:00
committed by GitHub
parent 14397651b5
commit afb831c93c
2 changed files with 91 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import { Bus } from "../bus"
const SUPPORTED_IDES = [
{ name: "Windsurf" as const, cmd: "windsurf" },
{ name: "Visual Studio Code - Insiders" as const, cmd: "code-insiders" },
{ name: "Visual Studio Code" as const, cmd: "code" },
{ name: "Cursor" as const, cmd: "cursor" },
{ name: "VSCodium" as const, cmd: "codium" },
@@ -43,7 +44,10 @@ export namespace Ide {
}
export function alreadyInstalled() {
return process.env["OPENCODE_CALLER"] === "vscode"
return (
process.env["OPENCODE_CALLER"] === "vscode" ||
process.env["OPENCODE_CALLER"] === "vscode-insiders"
)
}
export async function install(ide: (typeof SUPPORTED_IDES)[number]["name"]) {