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 | const inversify_1 = require("inversify");
|
19 | const preloader_1 = require("./preloader");
|
20 | const contribution_provider_1 = require("../../common/contribution-provider");
|
21 | const i18n_preload_contribution_1 = require("./i18n-preload-contribution");
|
22 | const os_preload_contribution_1 = require("./os-preload-contribution");
|
23 | const theme_preload_contribution_1 = require("./theme-preload-contribution");
|
24 | const localization_server_1 = require("../../common/i18n/localization-server");
|
25 | const ws_connection_provider_1 = require("../messaging/ws-connection-provider");
|
26 | const os_1 = require("../../common/os");
|
27 | exports.default = new inversify_1.ContainerModule(bind => {
|
28 | bind(preloader_1.Preloader).toSelf().inSingletonScope();
|
29 | (0, contribution_provider_1.bindContributionProvider)(bind, preloader_1.PreloadContribution);
|
30 | bind(localization_server_1.LocalizationServer).toDynamicValue(ctx => ws_connection_provider_1.WebSocketConnectionProvider.createProxy(ctx.container, localization_server_1.LocalizationServerPath)).inSingletonScope();
|
31 | bind(os_1.OSBackendProvider).toDynamicValue(ctx => ws_connection_provider_1.WebSocketConnectionProvider.createProxy(ctx.container, os_1.OSBackendProviderPath)).inSingletonScope();
|
32 | bind(i18n_preload_contribution_1.I18nPreloadContribution).toSelf().inSingletonScope();
|
33 | bind(preloader_1.PreloadContribution).toService(i18n_preload_contribution_1.I18nPreloadContribution);
|
34 | bind(os_preload_contribution_1.OSPreloadContribution).toSelf().inSingletonScope();
|
35 | bind(preloader_1.PreloadContribution).toService(os_preload_contribution_1.OSPreloadContribution);
|
36 | bind(theme_preload_contribution_1.ThemePreloadContribution).toSelf().inSingletonScope();
|
37 | bind(preloader_1.PreloadContribution).toService(theme_preload_contribution_1.ThemePreloadContribution);
|
38 | });
|
39 |
|
\ | No newline at end of file |