Skip to content

Commit 0a86aee

Browse files
authored
Merge branch 'main' into anthonykim1/copilotCLIsystemPrompt
2 parents ac4347e + e4067ee commit 0a86aee

172 files changed

Lines changed: 9558 additions & 3088 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/screenshot-test.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,14 @@ jobs:
107107
if (!errs.length) { console.log('No fixture errors.'); process.exit(0); }
108108
console.log(errs.length + ' fixture(s) with errors:');
109109
for (const f of errs) {
110-
const msg = f.error?.message || (typeof f.error === 'string' ? f.error : null) || 'unknown error';
110+
const errorEvents = (f.events || []).filter(e => e.isError);
111+
const msg = errorEvents.map(e => e.message).join('; ') || 'unknown error';
111112
console.log('::error::' + f.fixtureId + ': ' + msg);
112-
if (f.error?.stack) { console.log(' stack: ' + f.error.stack); }
113-
if (f.events?.length) {
114-
for (const e of f.events) { console.log(' event: ' + JSON.stringify(e)); }
113+
for (const e of errorEvents) {
114+
if (e.stack) { console.log(' stack: ' + e.stack); }
115115
}
116+
const nonErrorEvents = (f.events || []).filter(e => !e.isError);
117+
for (const e of nonErrorEvents) { console.log(' event: ' + JSON.stringify(e)); }
116118
}
117119
process.exit(1);
118120
"; then

‎build/.cachesalt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026-04-06T18:11:48.597Z
1+
2026-05-07T18:45:07.002Z

‎build/.moduleignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,8 @@ zone.js/dist/**
238238
@github/copilot-sdk/node_modules/@github/copilot-linux-x64/**
239239
@github/copilot-sdk/node_modules/@github/copilot-win32-arm64/**
240240
@github/copilot-sdk/node_modules/@github/copilot-win32-x64/**
241+
242+
# es5-ext is quarantined protestware (sonatype-2022-2248). It is only consumed
243+
# in websocket's browser.js inside a try/catch with a globalThis fallback,
244+
# so it is unnecessary in the browsers/runtimes VS Code supports.
245+
es5-ext/**

‎build/lib/extensions.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ function doPackageLocalExtensionsStream(forWeb: boolean, disableMangle: boolean,
430430
.filter(({ name }) => builtInExtensions.every(b => b.name !== name))
431431
.filter(({ manifestPath }) => (forWeb ? isWebExtension(require(manifestPath)) : true))
432432
);
433+
433434
const localExtensionsStream = minifyExtensionResources(
434435
es.merge(
435436
...localExtensionsDescriptions.map(extension => {
@@ -447,11 +448,15 @@ function doPackageLocalExtensionsStream(forWeb: boolean, disableMangle: boolean,
447448
const productionDependencies = getProductionDependencies('extensions/');
448449
const dependenciesSrc = productionDependencies.map(d => path.relative(root, d)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`]).flat();
449450

450-
result = es.merge(
451-
localExtensionsStream,
452-
gulp.src(dependenciesSrc, { base: '.' })
453-
.pipe(util2.cleanNodeModules(path.join(root, 'build', '.moduleignore')))
454-
.pipe(util2.cleanNodeModules(path.join(root, 'build', `.moduleignore.${process.platform}`))));
451+
if (dependenciesSrc.length) {
452+
result = es.merge(
453+
localExtensionsStream,
454+
gulp.src(dependenciesSrc, { base: '.' })
455+
.pipe(util2.cleanNodeModules(path.join(root, 'build', '.moduleignore')))
456+
.pipe(util2.cleanNodeModules(path.join(root, 'build', `.moduleignore.${process.platform}`))));
457+
} else {
458+
result = localExtensionsStream;
459+
}
455460
}
456461

457462
return (

‎build/lib/screenshotDiffReport.ts‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,21 @@ async function computePixelDiffs(
194194
return results;
195195
}
196196

197+
interface ManifestEvent {
198+
readonly type?: string;
199+
readonly message?: string;
200+
readonly stack?: string;
201+
readonly phase?: string;
202+
readonly isError?: boolean;
203+
}
204+
197205
interface LocalManifestFixture {
198206
readonly fixtureId: string;
199207
readonly imageHash?: string;
200208
readonly imagePath?: string;
201209
readonly labels?: readonly string[];
202210
readonly hasError?: boolean;
203-
readonly error?: { readonly message?: string; readonly stack?: string } | string;
211+
readonly events?: readonly ManifestEvent[];
204212
}
205213

206214
interface LocalManifest {
@@ -271,11 +279,10 @@ function diffManifests(local: LocalManifest, base: BaseCommitResponse): DiffResu
271279

272280
for (const cur of local.fixtures) {
273281
if (cur.hasError || !cur.imageHash || !cur.imagePath) {
274-
const rawError = cur.error;
275-
const errorMessage = typeof rawError === 'string'
276-
? rawError
277-
: rawError?.message ?? 'unknown error (no image hash produced)';
278-
const errorStack = typeof rawError === 'object' ? rawError?.stack : undefined;
282+
const errorEvents = (cur.events ?? []).filter(e => e.isError);
283+
const errorMessage = errorEvents.map(e => e.message).filter(Boolean).join('; ')
284+
|| 'unknown error (no image hash produced)';
285+
const errorStack = errorEvents.map(e => e.stack).find(s => s !== undefined);
279286
errored.push({
280287
fixtureId: cur.fixtureId,
281288
labels: cur.labels,

‎build/rspack/package-lock.json‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build/rspack/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"source-map-loader": "^5.0.0"
1414
},
1515
"dependencies": {
16-
"@vscode/component-explorer": "^0.2.1-26",
17-
"@vscode/component-explorer-webpack-plugin": "^0.3.1-23"
16+
"@vscode/component-explorer": "^0.2.1-27",
17+
"@vscode/component-explorer-webpack-plugin": "^0.3.1-24"
1818
}
1919
}

‎build/rspack/rspack.serve-out.config.mts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export default {
112112
devServer: {
113113
host: 'localhost',
114114
port,
115-
hot: 'only',
116-
liveReload: false,
115+
hot: true,
116+
liveReload: true,
117117
compress: false,
118118
headers: {
119119
'Access-Control-Allow-Origin': '*',

‎build/vite/package-lock.json‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build/vite/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"@vscode/component-explorer": "^0.2.1-26",
13-
"@vscode/component-explorer-vite-plugin": "^0.2.1-25",
12+
"@vscode/component-explorer": "^0.2.1-27",
13+
"@vscode/component-explorer-vite-plugin": "^0.2.1-26",
1414
"@vscode/rollup-plugin-esm-url": "^1.0.1-1",
1515
"rollup": "*",
1616
"vite": "npm:rolldown-vite@latest"

0 commit comments

Comments
 (0)