mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
update the extensions.js (#8352)
This commit is contained in:
@@ -189,9 +189,11 @@ const excludedExtensions = [
|
|||||||
'integration-tests'
|
'integration-tests'
|
||||||
];
|
];
|
||||||
// {{SQL CARBON EDIT}}
|
// {{SQL CARBON EDIT}}
|
||||||
const sqlBuiltInExtensions = [
|
const sqlExtensions = [
|
||||||
// Add SQL built-in extensions here.
|
// This is the list of SQL extensions which the source code is included in this repository, but
|
||||||
// the extension will be excluded from SQLOps package and will have separate vsix packages
|
// they get packaged separately. Adding extension name here, will make the build to create
|
||||||
|
// a separate vsix package for the extension and the extension will be excluded from the main package.
|
||||||
|
// Any extension not included here, will be installed by default.
|
||||||
'admin-tool-ext-win',
|
'admin-tool-ext-win',
|
||||||
'agent',
|
'agent',
|
||||||
'import',
|
'import',
|
||||||
@@ -214,7 +216,7 @@ function packageLocalExtensionsStream() {
|
|||||||
})
|
})
|
||||||
.filter(({ name }) => excludedExtensions.indexOf(name) === -1)
|
.filter(({ name }) => excludedExtensions.indexOf(name) === -1)
|
||||||
.filter(({ name }) => builtInExtensions.every(b => b.name !== name))
|
.filter(({ name }) => builtInExtensions.every(b => b.name !== name))
|
||||||
.filter(({ name }) => sqlBuiltInExtensions.indexOf(name) === -1); // {{SQL CARBON EDIT}} add aditional filter
|
.filter(({ name }) => sqlExtensions.indexOf(name) === -1); // {{SQL CARBON EDIT}} Remove SQL Extensions with separate package
|
||||||
const nodeModules = gulp.src('extensions/node_modules/**', { base: '.' });
|
const nodeModules = gulp.src('extensions/node_modules/**', { base: '.' });
|
||||||
const localExtensions = localExtensionDescriptions.map(extension => {
|
const localExtensions = localExtensionDescriptions.map(extension => {
|
||||||
return fromLocal(extension.path)
|
return fromLocal(extension.path)
|
||||||
@@ -234,7 +236,9 @@ function packageMarketplaceExtensionsStream() {
|
|||||||
}
|
}
|
||||||
exports.packageMarketplaceExtensionsStream = packageMarketplaceExtensionsStream;
|
exports.packageMarketplaceExtensionsStream = packageMarketplaceExtensionsStream;
|
||||||
const vfs = require("vinyl-fs");
|
const vfs = require("vinyl-fs");
|
||||||
function packageBuiltInExtensions() {
|
function packageSQLExtensions() {
|
||||||
|
// Create package for local SQL extensions
|
||||||
|
//
|
||||||
const sqlBuiltInLocalExtensionDescriptions = glob.sync('extensions/*/package.json')
|
const sqlBuiltInLocalExtensionDescriptions = glob.sync('extensions/*/package.json')
|
||||||
.map(manifestPath => {
|
.map(manifestPath => {
|
||||||
const extensionPath = path.dirname(path.join(root, manifestPath));
|
const extensionPath = path.dirname(path.join(root, manifestPath));
|
||||||
@@ -243,7 +247,7 @@ function packageBuiltInExtensions() {
|
|||||||
})
|
})
|
||||||
.filter(({ name }) => excludedExtensions.indexOf(name) === -1)
|
.filter(({ name }) => excludedExtensions.indexOf(name) === -1)
|
||||||
.filter(({ name }) => builtInExtensions.every(b => b.name !== name))
|
.filter(({ name }) => builtInExtensions.every(b => b.name !== name))
|
||||||
.filter(({ name }) => sqlBuiltInExtensions.indexOf(name) >= 0);
|
.filter(({ name }) => sqlExtensions.indexOf(name) >= 0);
|
||||||
const visxDirectory = path.join(path.dirname(root), 'vsix');
|
const visxDirectory = path.join(path.dirname(root), 'vsix');
|
||||||
try {
|
try {
|
||||||
if (!fs.existsSync(visxDirectory)) {
|
if (!fs.existsSync(visxDirectory)) {
|
||||||
@@ -265,7 +269,7 @@ function packageBuiltInExtensions() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.packageBuiltInExtensions = packageBuiltInExtensions;
|
exports.packageSQLExtensions = packageSQLExtensions;
|
||||||
function packageExtensionTask(extensionName, platform, arch) {
|
function packageExtensionTask(extensionName, platform, arch) {
|
||||||
var destination = path.join(path.dirname(root), 'azuredatastudio') + (platform ? '-' + platform : '') + (arch ? '-' + arch : '');
|
var destination = path.join(path.dirname(root), 'azuredatastudio') + (platform ? '-' + platform : '') + (arch ? '-' + arch : '');
|
||||||
if (platform === 'darwin') {
|
if (platform === 'darwin') {
|
||||||
|
|||||||
Reference in New Issue
Block a user