File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ const marketplaceWebExtensions = [
208208 'ms-vscode.references-view'
209209] ;
210210const productJson = JSON . parse ( fs . readFileSync ( path . join ( __dirname , '../../product.json' ) , 'utf8' ) ) ;
211- const builtInExtensions = productJson . builtInExtensions ;
212- const webBuiltInExtensions = productJson . webBuiltInExtensions ;
211+ const builtInExtensions = productJson . builtInExtensions || [ ] ;
212+ const webBuiltInExtensions = productJson . webBuiltInExtensions || [ ] ;
213213/**
214214 * Loosely based on `getExtensionKind` from `src/vs/workbench/services/extensions/common/extensionsUtil.ts`
215215 */
Original file line number Diff line number Diff line change @@ -251,8 +251,8 @@ interface IBuiltInExtension {
251251}
252252
253253const productJson = JSON . parse ( fs . readFileSync ( path . join ( __dirname , '../../product.json' ) , 'utf8' ) ) ;
254- const builtInExtensions : IBuiltInExtension [ ] = productJson . builtInExtensions ;
255- const webBuiltInExtensions : IBuiltInExtension [ ] = productJson . webBuiltInExtensions ;
254+ const builtInExtensions : IBuiltInExtension [ ] = productJson . builtInExtensions || [ ] ;
255+ const webBuiltInExtensions : IBuiltInExtension [ ] = productJson . webBuiltInExtensions || [ ] ;
256256
257257type ExtensionKind = 'ui' | 'workspace' | 'web' ;
258258interface IExtensionManifest {
You can’t perform that action at this time.
0 commit comments