mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Merge from vscode bead496a613e475819f89f08e9e882b841bc1fe8 (#14883)
* Merge from vscode bead496a613e475819f89f08e9e882b841bc1fe8 * Bump distro * Upgrade GCC to 4.9 due to yarn install errors * Update build image * Fix bootstrap base url * Bump distro * Fix build errors * Update source map file * Disable checkbox for blocking migration issues (#15131) * disable checkbox for blocking issues * wip * disable checkbox fixes * fix strings * Remove duplicate tsec command * Default to off for tab color if settings not present * re-skip failing tests * Fix mocha error * Bump sqlite version & fix notebooks search view * Turn off esbuild warnings * Update esbuild log level * Fix overflowactionbar tests * Fix ts-ignore in dropdown tests * cleanup/fixes * Fix hygiene * Bundle in entire zone.js module * Remove extra constructor param * bump distro for web compile break * bump distro for web compile break v2 * Undo log level change * New distro * Fix integration test scripts * remove the "no yarn.lock changes" workflow * fix scripts v2 * Update unit test scripts * Ensure ads-kerberos2 updates in .vscodeignore * Try fix unit tests * Upload crash reports * remove nogpu * always upload crashes * Use bash script * Consolidate data/ext dir names * Create in tmp directory Co-authored-by: chlafreniere <hichise@gmail.com> Co-authored-by: Christopher Suh <chsuh@microsoft.com> Co-authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -36,7 +36,7 @@ var AMDLoader;
|
||||
this._detect();
|
||||
return this._isWindows;
|
||||
},
|
||||
enumerable: true,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(Environment.prototype, "isNode", {
|
||||
@@ -44,7 +44,7 @@ var AMDLoader;
|
||||
this._detect();
|
||||
return this._isNode;
|
||||
},
|
||||
enumerable: true,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(Environment.prototype, "isElectronRenderer", {
|
||||
@@ -52,7 +52,7 @@ var AMDLoader;
|
||||
this._detect();
|
||||
return this._isElectronRenderer;
|
||||
},
|
||||
enumerable: true,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(Environment.prototype, "isWebWorker", {
|
||||
@@ -60,7 +60,7 @@ var AMDLoader;
|
||||
this._detect();
|
||||
return this._isWebWorker;
|
||||
},
|
||||
enumerable: true,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
Environment.prototype._detect = function () {
|
||||
@@ -199,6 +199,7 @@ var AMDLoader;
|
||||
return obj;
|
||||
}
|
||||
if (!Array.isArray(obj) && Object.getPrototypeOf(obj) !== Object.prototype) {
|
||||
// only clone "simple" objects
|
||||
return obj;
|
||||
}
|
||||
var result = Array.isArray(obj) ? [] : {};
|
||||
@@ -741,8 +742,8 @@ var AMDLoader;
|
||||
// nothing
|
||||
}
|
||||
};
|
||||
require.resolve = function resolve(request) {
|
||||
return Module._resolveFilename(request, mod);
|
||||
require.resolve = function resolve(request, options) {
|
||||
return Module._resolveFilename(request, mod, false, options);
|
||||
};
|
||||
require.main = process.mainModule;
|
||||
require.extensions = Module._extensions;
|
||||
@@ -863,7 +864,7 @@ var AMDLoader;
|
||||
}
|
||||
};
|
||||
NodeScriptLoader.prototype._getCachedDataPath = function (config, filename) {
|
||||
var hash = this._crypto.createHash('md5').update(filename, 'utf8').update(config.seed, 'utf8').digest('hex');
|
||||
var hash = this._crypto.createHash('md5').update(filename, 'utf8').update(config.seed, 'utf8').update(process.arch, '').digest('hex');
|
||||
var basename = this._path.basename(filename).replace(/\.js$/, '');
|
||||
return this._path.join(config.path, basename + "-" + hash + ".code");
|
||||
};
|
||||
@@ -1218,6 +1219,7 @@ var AMDLoader;
|
||||
this._requireFunc = requireFunc;
|
||||
this._moduleIdProvider = new ModuleIdProvider();
|
||||
this._config = new AMDLoader.Configuration(this._env);
|
||||
this._hasDependencyCycle = false;
|
||||
this._modules2 = [];
|
||||
this._knownModules2 = [];
|
||||
this._inverseDependencies2 = [];
|
||||
@@ -1562,6 +1564,9 @@ var AMDLoader;
|
||||
result.getStats = function () {
|
||||
return _this.getLoaderEvents();
|
||||
};
|
||||
result.hasDependencyCycle = function () {
|
||||
return _this._hasDependencyCycle;
|
||||
};
|
||||
result.config = function (params, shouldOverwrite) {
|
||||
if (shouldOverwrite === void 0) { shouldOverwrite = false; }
|
||||
_this.configure(params, shouldOverwrite);
|
||||
@@ -1667,6 +1672,7 @@ var AMDLoader;
|
||||
continue;
|
||||
}
|
||||
if (this._hasDependencyPath(dependency.id, module.id)) {
|
||||
this._hasDependencyCycle = true;
|
||||
console.warn('There is a dependency cycle between \'' + this._moduleIdProvider.getStrModuleId(dependency.id) + '\' and \'' + this._moduleIdProvider.getStrModuleId(module.id) + '\'. The cyclic path follows:');
|
||||
var cyclePath = this._findCyclePath(dependency.id, module.id, 0) || [];
|
||||
cyclePath.reverse();
|
||||
|
||||
Reference in New Issue
Block a user