freebsd-ports/editors/vscode/files/patch-build_lib_preLaunch.ts
Hiroki Tagato 25eaa50554 editors/vscode: update to 1.94.0
Upstream has migrated from long obsolete yarn v1 to npm as node
package manager. So make necessary changes to Makefile to follow the
migration.

While here, remove REH (remote extension host) option which is no-op
in package building. Users who want to build remote extension host can
now use dedicated make target "build-remote-extension-host".

Changelog: https://code.visualstudio.com/updates/v1_94

Reported by:	GitHub (watch releases)
2024-10-06 06:22:24 +09:00

24 lines
625 B
TypeScript

--- build/lib/preLaunch.ts.orig 2024-09-27 21:08:28 UTC
+++ build/lib/preLaunch.ts
@@ -35,9 +35,9 @@ async function ensureNodeModules() {
}
}
-async function getElectron() {
- await runProcess(npm, ['run', 'electron']);
-}
+// async function getElectron() {
+// await runProcess(npm, ['run', 'electron']);
+// }
async function ensureCompiled() {
if (!(await exists('out'))) {
@@ -47,7 +47,7 @@ async function main() {
async function main() {
await ensureNodeModules();
- await getElectron();
+ // await getElectron();
await ensureCompiled();
// Can't require this until after dependencies are installed