[ACA-1646] "dev tools" extension (#567)

* dev tools extension project

* code editor integration

* latest editor, offline setup

* override extension config (session only)

* schema support

* wire external plugins with experimental flag

* update package scripts

* sidebar extensions scaffold

* propagate extension tabs to info drawer

* separate tab components for info drawer

* extensibility for info drawer

* support tab icons
This commit is contained in:
Denys Vuika
2018-08-16 16:55:06 +01:00
committed by GitHub
parent ed23a21a00
commit 89aec91caf
43 changed files with 2391 additions and 149 deletions

View File

@@ -95,3 +95,38 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
* Need to import at least one locale-data with intl.
*/
// import 'intl/locale-data/jsonp/en';
// workaround for https://github.com/Microsoft/monaco-editor/issues/790
Promise.all = function(values: any): Promise<any> {
let resolve: (v: any) => void;
let reject: (v: any) => void;
const promise = new this((res, rej) => {
resolve = res;
reject = rej;
});
let count = 0;
let index = 0;
const resolvedValues: any[] = [];
for (let value of values) {
if (!(value && value.then)) {
value = this.resolve(value);
}
value.then(
(idx => (val: any) => {
resolvedValues[idx] = val;
count--;
if (!count) {
resolve(resolvedValues);
}
})(index),
reject
);
count++;
index++;
}
if (!count) {
resolve(resolvedValues);
}
return promise;
};