From 0ccae8afbdb17e47365f51a987146b9354eacca9 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 5 Dec 2023 14:45:25 +0100 Subject: [PATCH] Build failed (fix #200032) (#200037) --- src/cli.js | 1 + src/main.js | 1 + src/vs/platform/environment/test/node/argv.test.ts | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cli.js b/src/cli.js index dd5ea5351ec..a8aaa1f0d54 100644 --- a/src/cli.js +++ b/src/cli.js @@ -19,6 +19,7 @@ const bootstrapNode = require('./bootstrap-node'); const product = require('../product.json'); // Enable portable support +// @ts-ignore bootstrapNode.configurePortable(product); // Enable ASAR support diff --git a/src/main.js b/src/main.js index a632301fe9d..17507dc73da 100644 --- a/src/main.js +++ b/src/main.js @@ -24,6 +24,7 @@ const { getUserDataPath } = require('./vs/platform/environment/node/userDataPath const { stripComments } = require('./vs/base/common/stripComments'); const { getUNCHost, addUNCHostToAllowlist } = require('./vs/base/node/unc'); /** @type {Partial} */ +// @ts-ignore const product = require('../product.json'); const { app, protocol, crashReporter, Menu } = require('electron'); diff --git a/src/vs/platform/environment/test/node/argv.test.ts b/src/vs/platform/environment/test/node/argv.test.ts index 20f1e237aa4..e3f75f2cde3 100644 --- a/src/vs/platform/environment/test/node/argv.test.ts +++ b/src/vs/platform/environment/test/node/argv.test.ts @@ -118,7 +118,7 @@ suite('parseArgs', () => { _: { type: 'string[]' } }), _: { type: 'string[]' } - } satisfies OptionDescriptions; + } as OptionDescriptions; assertParse( options1, ['testcmd', '--testArg=foo'], @@ -148,7 +148,7 @@ suite('parseArgs', () => { }), testX: { type: 'boolean', global: true, description: '' }, _: { type: 'string[]' } - } satisfies OptionDescriptions; + } as OptionDescriptions; assertParse( options2, ['testcmd', '--testArg=foo', '--testX'],