split web extensions
This commit is contained in:
parent
e8f2b6d6ae
commit
05bdb6a975
2 changed files with 11 additions and 8 deletions
|
@ -240,8 +240,7 @@ const excludedWebExtensions = excludedCommonExtensions.concat([
|
|||
]);
|
||||
|
||||
const marketplaceWebExtensions = [
|
||||
'ms-vscode.references-view',
|
||||
'ms-vscode.github-browser'
|
||||
'ms-vscode.references-view'
|
||||
];
|
||||
|
||||
interface IBuiltInExtension {
|
||||
|
@ -251,7 +250,9 @@ interface IBuiltInExtension {
|
|||
metadata: any;
|
||||
}
|
||||
|
||||
const builtInExtensions: IBuiltInExtension[] = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8')).builtInExtensions;
|
||||
const productJson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8'));
|
||||
const builtInExtensions: IBuiltInExtension[] = productJson.builtInExtensions;
|
||||
const webBuiltInExtensions: IBuiltInExtension[] = productJson.webBuiltInExtensions;
|
||||
|
||||
type ExtensionKind = 'ui' | 'workspace' | 'web';
|
||||
interface IExtensionManifest {
|
||||
|
@ -308,10 +309,10 @@ export function packageLocalExtensionsStream(forWeb: boolean): Stream {
|
|||
}
|
||||
|
||||
export function packageMarketplaceExtensionsStream(forWeb: boolean): Stream {
|
||||
const marketplaceExtensionsDescriptions = (
|
||||
builtInExtensions
|
||||
.filter(({ name }) => (forWeb ? marketplaceWebExtensions.indexOf(name) >= 0 : true))
|
||||
);
|
||||
const marketplaceExtensionsDescriptions = [
|
||||
...builtInExtensions.filter(({ name }) => (forWeb ? marketplaceWebExtensions.indexOf(name) >= 0 : true)),
|
||||
...(forWeb ? webBuiltInExtensions : [])
|
||||
];
|
||||
const marketplaceExtensionsStream = minifyExtensionResources(
|
||||
es.merge(
|
||||
...marketplaceExtensionsDescriptions
|
||||
|
|
|
@ -118,7 +118,9 @@
|
|||
},
|
||||
"publisherDisplayName": "Microsoft"
|
||||
}
|
||||
},
|
||||
}
|
||||
],
|
||||
"webBuiltInExtensions": [
|
||||
{
|
||||
"name": "ms-vscode.github-browser",
|
||||
"version": "0.0.1",
|
||||
|
|
Loading…
Reference in a new issue