mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 09:24:12 -05:00
* feat: update to Electron v42
* chore: drop support for arm 32-bit server
* chore: update types/node to v24.x
* chore: temporarily lock the target version for build/
* chore: update v8-source-location.patch
* chore: fix clippy
* chore: cleanup armhf server ci config
* fix: broken lock file
* fix: c++ version requirement for sysroot builds
* fix: msvc compilation of native modules
* fix: handle rejections for fire-and-forget loadurl
* fix: windows build
* ci: fix teardown of daemon process on windows
```
2026-05-15T20:55:09.7717127Z Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76
```
* chore: update deb and rpm dependencies
* chore: update version info
* spec: improve reliablity of offscreencanvas tests
* spec: retry EPERM failures on teardown
* chore: update x86_64 rpm deps
* ci: exclude server binskim for armhf
* temp: bump distro
* test: ignore deprecation warnings treated as errors
* chore: update lockfile
* fix: externalize electron from auth extension bundles
Error: Cannot find module 'c:\Users\cloudtest\AppData\Local\Temp\vscode-sanityQvCaze\vscode-server-win32-x64-web\extensions\github-authentication\dist\install.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1476:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1049:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1073:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1094:12)
at Module._load (node:internal/modules/cjs/loader:1262:25)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.15.0
* test: make wsl sanity tests reliable
* chore: bump electron@42.1.0
* temp: bump distro
* chore: bump electron@42.2.0
* chore: bump distro
* chore: update debian dependencies
* Revert "test: make wsl sanity tests reliable"
This reverts commit b3f2b63e83.
* test: do not fail for deprecation warnings
* chore: patch node24 server binary for wsl1
* chore: address review feedback
* chore: revert global navigation error handler in browserview
* chore: bump distro
68 lines
2.1 KiB
TypeScript
68 lines
2.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import * as fs from 'node:fs';
|
|
import * as path from 'node:path';
|
|
import { run } from '../esbuild-extension-common.mts';
|
|
|
|
const srcDir = path.join(import.meta.dirname, 'src');
|
|
const outDir = path.join(import.meta.dirname, 'dist');
|
|
|
|
const isWindows = process.platform === 'win32';
|
|
const isMacOS = process.platform === 'darwin';
|
|
const isLinux = !isWindows && !isMacOS;
|
|
|
|
const windowsArches = ['x64'];
|
|
const linuxArches = ['x64'];
|
|
|
|
let platformFolder: string;
|
|
switch (process.platform) {
|
|
case 'win32': platformFolder = 'windows'; break;
|
|
case 'darwin': platformFolder = 'macos'; break;
|
|
case 'linux': platformFolder = 'linux'; break;
|
|
default: throw new Error(`Unsupported platform: ${process.platform}`);
|
|
}
|
|
|
|
const arch = process.env.VSCODE_ARCH || process.arch;
|
|
|
|
/**
|
|
* Copy native MSAL runtime binaries to the output directory.
|
|
*/
|
|
async function copyNativeMsalFiles(outDir: string): Promise<void> {
|
|
if (
|
|
!(isWindows && windowsArches.includes(arch)) &&
|
|
!isMacOS &&
|
|
!(isLinux && linuxArches.includes(arch))
|
|
) {
|
|
return;
|
|
}
|
|
|
|
const msalRuntimeDir = path.join(import.meta.dirname, 'node_modules', '@azure', 'msal-node-runtime', 'dist', platformFolder, arch);
|
|
try {
|
|
const files = await fs.promises.readdir(msalRuntimeDir);
|
|
for (const file of files) {
|
|
if (/^(lib)?msal.*\.(node|dll|dylib|so)$/.test(file)) {
|
|
await fs.promises.copyFile(path.join(msalRuntimeDir, file), path.join(outDir, file));
|
|
}
|
|
}
|
|
} catch {
|
|
// Skip if directory doesn't exist (unsupported platform/arch)
|
|
}
|
|
}
|
|
|
|
run({
|
|
platform: 'node',
|
|
entryPoints: {
|
|
'extension': path.join(srcDir, 'extension.ts'),
|
|
},
|
|
srcDir,
|
|
outdir: outDir,
|
|
additionalOptions: {
|
|
external: ['vscode', 'electron', './msal-node-runtime'],
|
|
alias: {
|
|
'keytar': path.resolve(import.meta.dirname, 'packageMocks', 'keytar', 'index.js'),
|
|
},
|
|
},
|
|
}, process.argv, copyNativeMsalFiles);
|