Skip to content

Commit cdde5c3

Browse files
committed
Also download webBuiltInExtensions when running from source
1 parent 164733e commit cdde5c3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build/lib/builtInExtensions.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const fancyLog = require('fancy-log');
1818
const ansiColors = require('ansi-colors');
1919

2020
const root = path.dirname(path.dirname(__dirname));
21-
const builtInExtensions = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8')).builtInExtensions;
21+
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8'));
22+
const builtInExtensions = productjson.builtInExtensions;
23+
const webBuiltInExtensions = productjson.webBuiltInExtensions;
2224
const controlFilePath = path.join(os.homedir(), '.vscode-oss-dev', 'extensions', 'control.json');
2325
const ENABLE_LOGGING = !process.env['VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE'];
2426

@@ -107,7 +109,7 @@ exports.getBuiltInExtensions = function getBuiltInExtensions() {
107109
const control = readControlFile();
108110
const streams = [];
109111

110-
for (const extension of builtInExtensions) {
112+
for (const extension of [...builtInExtensions, ...webBuiltInExtensions]) {
111113
let controlState = control[extension.name] || 'marketplace';
112114
control[extension.name] = controlState;
113115

0 commit comments

Comments
 (0)