Skip to content

Commit 3e82038

Browse files
Copilotrzhao271
andauthored
Update got to v15 (#2353)
* chore: update got and picomatch deps Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/97e7c80f-b461-49cc-bc49-54251e27ac41 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * fix got v15 compatibility Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/97e7c80f-b461-49cc-bc49-54251e27ac41 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * refine got v15 compatibility Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/97e7c80f-b461-49cc-bc49-54251e27ac41 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * polish got import naming Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/97e7c80f-b461-49cc-bc49-54251e27ac41 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * revert unrelated options diff Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/97e7c80f-b461-49cc-bc49-54251e27ac41 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * migrate tsconfig to esm-aware resolution Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/976ff1a2-7de9-4654-bbf1-57d81d50bae2 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * chore: sync branch with main Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/c534086f-edf5-4b0f-a094-c82c1f8f3ec7 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * chore: align branch with latest main Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/c534086f-edf5-4b0f-a094-c82c1f8f3ec7 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * chore: remove options newline Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/c534086f-edf5-4b0f-a094-c82c1f8f3ec7 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * chore: update lockfile * chore: restore picomatch range Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/fd3d3088-251b-4e81-9b5d-1b03747745ea Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> * chore: drop stray options diff Agent-Logs-Url: https://github.com/microsoft/vscode-js-debug/sessions/fd3d3088-251b-4e81-9b5d-1b03747745ea Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
1 parent 3ebbc81 commit 3e82038

4 files changed

Lines changed: 362 additions & 304 deletions

File tree

gulpfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ const cp = require('child_process');
1414
const util = require('util');
1515
const esbuild = require('esbuild');
1616
const esbuildPlugins = require('./src/build/esbuildPlugins');
17-
const got = require('got').default;
1817
const { HttpsProxyAgent } = require('https-proxy-agent');
1918
const jszip = require('jszip');
2019
const stream = require('stream');
2120

2221
const pipelineAsync = util.promisify(stream.pipeline);
22+
let cachedGotPromise;
23+
const getGotInstance = () => (cachedGotPromise ??= import('got').then(mod => mod.default));
2324

2425
const dirname = 'js-debug';
2526
const sources = ['src/**/*.{ts,tsx}'];
@@ -354,6 +355,7 @@ gulp.task('package:createVSIX', () =>
354355
}));
355356

356357
gulp.task('l10n:bundle-download', async () => {
358+
const got = await getGotInstance();
357359
const opts = {};
358360
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY || null;
359361
if (proxy) {

0 commit comments

Comments
 (0)