1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.Preloader = exports.PreloadContribution = void 0;
|
19 | const tslib_1 = require("tslib");
|
20 | const inversify_1 = require("inversify");
|
21 | const contribution_provider_1 = require("../../common/contribution-provider");
|
22 | exports.PreloadContribution = Symbol('PreloadContribution');
|
23 | let Preloader = class Preloader {
|
24 | async initialize() {
|
25 | await Promise.allSettled(this.contributions.getContributions().map(contrib => contrib.initialize()));
|
26 | }
|
27 | };
|
28 | (0, tslib_1.__decorate)([
|
29 | (0, inversify_1.inject)(contribution_provider_1.ContributionProvider),
|
30 | (0, inversify_1.named)(exports.PreloadContribution),
|
31 | (0, tslib_1.__metadata)("design:type", Object)
|
32 | ], Preloader.prototype, "contributions", void 0);
|
33 | Preloader = (0, tslib_1.__decorate)([
|
34 | (0, inversify_1.injectable)()
|
35 | ], Preloader);
|
36 | exports.Preloader = Preloader;
|
37 |
|
\ | No newline at end of file |