Files
bun.sh/packages/bun-vscode/scripts/test.mjs
Ashcon Partovi 2a9e967fd1 More improvements to debugger support (#4345)
* More fixes for dap

* More changes

* More changes 2

* More fixes

* Fix debugger.ts

* Bun Terminal
2023-08-26 02:34:25 -07:00

22 lines
514 B
JavaScript

import { readdirSync } from "node:fs";
import { spawn } from "node:child_process";
const { pathname } = new URL("..", import.meta.url);
process.chdir(pathname);
let path;
for (const filename of readdirSync("extension")) {
if (filename.endsWith(".vsix")) {
path = `extension/${filename}`;
break;
}
}
if (!path) {
throw new Error("No .vsix file found");
}
spawn("code", ["--new-window", `--install-extension=${path}`, `--extensionDevelopmentPath=${pathname}`, "example"], {
stdio: "inherit",
});