@theia/core 1.45.1 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/i18n/nls.cs.json +4 -0
- package/i18n/nls.de.json +4 -0
- package/i18n/nls.es.json +4 -0
- package/i18n/nls.fr.json +4 -0
- package/i18n/nls.hu.json +4 -0
- package/i18n/nls.it.json +4 -0
- package/i18n/nls.ja.json +4 -0
- package/i18n/nls.json +4 -0
- package/i18n/nls.pl.json +4 -0
- package/i18n/nls.pt-br.json +4 -0
- package/i18n/nls.pt-pt.json +4 -0
- package/i18n/nls.ru.json +4 -0
- package/i18n/nls.zh-cn.json +4 -0
- package/lib/browser/browser.d.ts +3 -0
- package/lib/browser/browser.d.ts.map +1 -1
- package/lib/browser/browser.js +5 -1
- package/lib/browser/browser.js.map +1 -1
- package/lib/browser/common-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/common-frontend-contribution.js +3 -3
- package/lib/browser/common-frontend-contribution.js.map +1 -1
- package/lib/browser/frontend-application-module.d.ts.map +1 -1
- package/lib/browser/frontend-application-module.js +2 -1
- package/lib/browser/frontend-application-module.js.map +1 -1
- package/lib/browser/tree/index.d.ts +1 -0
- package/lib/browser/tree/index.d.ts.map +1 -1
- package/lib/browser/tree/index.js +1 -0
- package/lib/browser/tree/index.js.map +1 -1
- package/lib/browser/tree/tree-preference.d.ts +11 -0
- package/lib/browser/tree/tree-preference.d.ts.map +1 -0
- package/lib/browser/tree/tree-preference.js +47 -0
- package/lib/browser/tree/tree-preference.js.map +1 -0
- package/lib/browser/tree/tree-widget.d.ts +6 -3
- package/lib/browser/tree/tree-widget.d.ts.map +1 -1
- package/lib/browser/tree/tree-widget.js +24 -3
- package/lib/browser/tree/tree-widget.js.map +1 -1
- package/lib/browser/tree/tree.d.ts.map +1 -1
- package/lib/browser/tree/tree.js +4 -1
- package/lib/browser/tree/tree.js.map +1 -1
- package/lib/browser/widget-manager.d.ts +9 -0
- package/lib/browser/widget-manager.d.ts.map +1 -1
- package/lib/browser/widget-manager.js +23 -0
- package/lib/browser/widget-manager.js.map +1 -1
- package/lib/browser/widgets/select-component.d.ts.map +1 -1
- package/lib/browser/widgets/select-component.js +1 -0
- package/lib/browser/widgets/select-component.js.map +1 -1
- package/lib/browser-only/frontend-only-application-module.d.ts +5 -0
- package/lib/browser-only/frontend-only-application-module.d.ts.map +1 -0
- package/lib/browser-only/frontend-only-application-module.js +115 -0
- package/lib/browser-only/frontend-only-application-module.js.map +1 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.d.ts +4 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.js +35 -0
- package/lib/browser-only/i18n/i18n-frontend-only-module.js.map +1 -0
- package/lib/browser-only/logger-frontend-only-module.d.ts +3 -0
- package/lib/browser-only/logger-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/logger-frontend-only-module.js +61 -0
- package/lib/browser-only/logger-frontend-only-module.js.map +1 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.d.ts +14 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.d.ts.map +1 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.js +57 -0
- package/lib/browser-only/messaging/frontend-only-service-connection-provider.js.map +1 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.d.ts +3 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.d.ts.map +1 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.js +48 -0
- package/lib/browser-only/messaging/messaging-frontend-only-module.js.map +1 -0
- package/lib/browser-only/preload/frontend-only-preload-module.d.ts +4 -0
- package/lib/browser-only/preload/frontend-only-preload-module.d.ts.map +1 -0
- package/lib/browser-only/preload/frontend-only-preload-module.js +52 -0
- package/lib/browser-only/preload/frontend-only-preload-module.js.map +1 -0
- package/lib/common/application-protocol.d.ts +1 -0
- package/lib/common/application-protocol.d.ts.map +1 -1
- package/lib/common/disposable.d.ts +9 -0
- package/lib/common/disposable.d.ts.map +1 -1
- package/lib/common/disposable.js +26 -1
- package/lib/common/disposable.js.map +1 -1
- package/lib/{node → common}/file-uri.d.ts +1 -1
- package/lib/common/file-uri.d.ts.map +1 -0
- package/lib/{node → common}/file-uri.js +2 -2
- package/lib/common/file-uri.js.map +1 -0
- package/lib/common/menu/menu-model-registry.d.ts +2 -2
- package/lib/common/menu/menu-model-registry.d.ts.map +1 -1
- package/lib/common/menu/menu-model-registry.js +16 -2
- package/lib/common/menu/menu-model-registry.js.map +1 -1
- package/lib/common/menu/menu.spec.js +28 -1
- package/lib/common/menu/menu.spec.js.map +1 -1
- package/lib/common/message-rpc/msg-pack-extension-manager.d.ts +1 -1
- package/lib/common/message-rpc/msg-pack-extension-manager.js +1 -1
- package/lib/common/message-rpc/rpc-protocol.d.ts +3 -1
- package/lib/common/message-rpc/rpc-protocol.d.ts.map +1 -1
- package/lib/common/message-rpc/rpc-protocol.js +19 -1
- package/lib/common/message-rpc/rpc-protocol.js.map +1 -1
- package/lib/common/messaging/proxy-factory.d.ts.map +1 -1
- package/lib/common/messaging/proxy-factory.js +1 -8
- package/lib/common/messaging/proxy-factory.js.map +1 -1
- package/lib/common/quick-pick-service.d.ts +1 -1
- package/lib/common/quick-pick-service.d.ts.map +1 -1
- package/lib/common/uuid.d.ts +6 -0
- package/lib/common/uuid.d.ts.map +1 -1
- package/lib/common/uuid.js +13 -1
- package/lib/common/uuid.js.map +1 -1
- package/lib/electron-main/electron-main-application.js +1 -1
- package/lib/electron-main/electron-main-application.js.map +1 -1
- package/lib/electron-main/theia-electron-window.js +1 -1
- package/lib/electron-main/theia-electron-window.js.map +1 -1
- package/lib/node/application-server.d.ts +1 -0
- package/lib/node/application-server.d.ts.map +1 -1
- package/lib/node/application-server.js +7 -1
- package/lib/node/application-server.js.map +1 -1
- package/lib/node/env-variables/env-variables-server.js +1 -1
- package/lib/node/env-variables/env-variables-server.js.map +1 -1
- package/lib/node/file-uri.spec.js +1 -1
- package/lib/node/file-uri.spec.js.map +1 -1
- package/lib/node/index.d.ts +1 -1
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +1 -1
- package/lib/node/index.js.map +1 -1
- package/package.json +10 -6
- package/src/browser/browser.ts +6 -1
- package/src/browser/common-frontend-contribution.ts +3 -3
- package/src/browser/frontend-application-module.ts +2 -1
- package/src/browser/style/select-component.css +12 -13
- package/src/browser/tree/index.ts +1 -0
- package/src/browser/tree/tree-preference.ts +50 -0
- package/src/browser/tree/tree-widget.tsx +24 -5
- package/src/browser/tree/tree.ts +2 -1
- package/src/browser/widget-manager.ts +25 -0
- package/src/browser/widgets/select-component.tsx +1 -0
- package/src/browser-only/frontend-only-application-module.ts +115 -0
- package/src/browser-only/i18n/i18n-frontend-only-module.ts +37 -0
- package/src/browser-only/logger-frontend-only-module.ts +63 -0
- package/src/browser-only/messaging/frontend-only-service-connection-provider.ts +39 -0
- package/src/browser-only/messaging/messaging-frontend-only-module.ts +42 -0
- package/src/browser-only/preload/frontend-only-preload-module.ts +49 -0
- package/src/common/application-protocol.ts +1 -0
- package/src/common/disposable.ts +25 -0
- package/src/{node → common}/file-uri.ts +2 -2
- package/src/common/menu/menu-model-registry.ts +22 -5
- package/src/common/menu/menu.spec.ts +30 -2
- package/src/common/message-rpc/msg-pack-extension-manager.ts +1 -1
- package/src/common/message-rpc/rpc-protocol.ts +22 -2
- package/src/common/messaging/proxy-factory.ts +1 -8
- package/src/common/quick-pick-service.ts +1 -1
- package/src/common/uuid.ts +13 -0
- package/src/electron-main/electron-main-application.ts +1 -1
- package/src/electron-main/theia-electron-window.ts +1 -1
- package/src/node/application-server.ts +8 -1
- package/src/node/env-variables/env-variables-server.ts +1 -1
- package/src/node/file-uri.spec.ts +1 -1
- package/src/node/index.ts +1 -1
- package/lib/node/file-uri.d.ts.map +0 -1
- package/lib/node/file-uri.js.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerModule } from 'inversify';
|
|
2
|
+
import { bindMessageService } from '../browser/frontend-application-bindings';
|
|
3
|
+
export { bindMessageService };
|
|
4
|
+
export declare const frontendOnlyApplicationModule: ContainerModule;
|
|
5
|
+
//# sourceMappingURL=frontend-only-application-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-only-application-module.d.ts","sourceRoot":"","sources":["../../src/browser-only/frontend-only-application-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAO9E,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAG9B,eAAO,MAAM,6BAA6B,iBAoFxC,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.frontendOnlyApplicationModule = exports.bindMessageService = void 0;
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const common_1 = require("../common");
|
|
21
|
+
const application_protocol_1 = require("../common/application-protocol");
|
|
22
|
+
const env_variables_1 = require("./../common/env-variables");
|
|
23
|
+
const frontend_application_bindings_1 = require("../browser/frontend-application-bindings");
|
|
24
|
+
Object.defineProperty(exports, "bindMessageService", { enumerable: true, get: function () { return frontend_application_bindings_1.bindMessageService; } });
|
|
25
|
+
const key_store_1 = require("../common/key-store");
|
|
26
|
+
const quick_pick_service_1 = require("../common/quick-pick-service");
|
|
27
|
+
const quick_input_1 = require("../browser/quick-input");
|
|
28
|
+
const request_1 = require("@theia/request");
|
|
29
|
+
const connection_status_service_1 = require("../browser/connection-status-service");
|
|
30
|
+
// is loaded directly after the regular frontend module
|
|
31
|
+
exports.frontendOnlyApplicationModule = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
32
|
+
if (isBound(common_1.CommandRegistry)) {
|
|
33
|
+
rebind(common_1.CommandRegistry).toSelf().inSingletonScope();
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
bind(common_1.CommandRegistry).toSelf().inSingletonScope();
|
|
37
|
+
}
|
|
38
|
+
const stopwatch = {
|
|
39
|
+
start: async (_name, _options) => -1,
|
|
40
|
+
stop: async (_measurement, _message, _messageArgs) => { }
|
|
41
|
+
};
|
|
42
|
+
if (isBound(common_1.BackendStopwatch)) {
|
|
43
|
+
rebind(common_1.BackendStopwatch).toConstantValue(stopwatch);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
bind(common_1.BackendStopwatch).toConstantValue(stopwatch);
|
|
47
|
+
}
|
|
48
|
+
if (isBound(common_1.CommandRegistry)) {
|
|
49
|
+
rebind(quick_pick_service_1.QuickPickService).to(quick_input_1.QuickPickServiceImpl).inSingletonScope();
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
bind(quick_pick_service_1.QuickPickService).to(quick_input_1.QuickPickServiceImpl).inSingletonScope();
|
|
53
|
+
}
|
|
54
|
+
const mockedApplicationServer = {
|
|
55
|
+
getExtensionsInfos: async () => [],
|
|
56
|
+
getApplicationInfo: async () => undefined,
|
|
57
|
+
getApplicationRoot: async () => '',
|
|
58
|
+
getBackendOS: async () => common_1.OS.Type.Linux
|
|
59
|
+
};
|
|
60
|
+
if (isBound(application_protocol_1.ApplicationServer)) {
|
|
61
|
+
rebind(application_protocol_1.ApplicationServer).toConstantValue(mockedApplicationServer);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
bind(application_protocol_1.ApplicationServer).toConstantValue(mockedApplicationServer);
|
|
65
|
+
}
|
|
66
|
+
const varServer = {
|
|
67
|
+
getExecPath: async () => '',
|
|
68
|
+
getVariables: async () => [],
|
|
69
|
+
getValue: async (_key) => undefined,
|
|
70
|
+
getConfigDirUri: async () => '',
|
|
71
|
+
getHomeDirUri: async () => '',
|
|
72
|
+
getDrives: async () => []
|
|
73
|
+
};
|
|
74
|
+
if (isBound(env_variables_1.EnvVariablesServer)) {
|
|
75
|
+
rebind(env_variables_1.EnvVariablesServer).toConstantValue(varServer);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
bind(env_variables_1.EnvVariablesServer).toConstantValue(varServer);
|
|
79
|
+
}
|
|
80
|
+
const keyStoreService = {
|
|
81
|
+
deletePassword: () => Promise.resolve(false),
|
|
82
|
+
findCredentials: () => Promise.resolve([]),
|
|
83
|
+
findPassword: () => Promise.resolve(undefined),
|
|
84
|
+
setPassword: () => Promise.resolve(),
|
|
85
|
+
getPassword: () => Promise.resolve(undefined)
|
|
86
|
+
};
|
|
87
|
+
if (isBound(key_store_1.KeyStoreService)) {
|
|
88
|
+
rebind(key_store_1.KeyStoreService).toConstantValue(keyStoreService);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
bind(key_store_1.KeyStoreService).toConstantValue(keyStoreService);
|
|
92
|
+
}
|
|
93
|
+
const requestService = {
|
|
94
|
+
configure: () => Promise.resolve(),
|
|
95
|
+
request: () => Promise.reject(),
|
|
96
|
+
resolveProxy: () => Promise.resolve(undefined)
|
|
97
|
+
};
|
|
98
|
+
if (isBound(request_1.BackendRequestService)) {
|
|
99
|
+
rebind(request_1.BackendRequestService).toConstantValue(requestService);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
bind(request_1.BackendRequestService).toConstantValue(requestService);
|
|
103
|
+
}
|
|
104
|
+
const connectionStatusService = {
|
|
105
|
+
currentStatus: connection_status_service_1.ConnectionStatus.ONLINE,
|
|
106
|
+
onStatusChange: new common_1.Emitter().event
|
|
107
|
+
};
|
|
108
|
+
if (isBound(connection_status_service_1.ConnectionStatusService)) {
|
|
109
|
+
rebind(connection_status_service_1.ConnectionStatusService).toConstantValue(connectionStatusService);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
bind(connection_status_service_1.ConnectionStatusService).toConstantValue(connectionStatusService);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
//# sourceMappingURL=frontend-only-application-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-only-application-module.js","sourceRoot":"","sources":["../../src/browser-only/frontend-only-application-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,yCAA4C;AAC5C,sCAA+F;AAC/F,yEAAmG;AACnG,6DAA4E;AAC5E,4FAA8E;AAOrE,mGAPA,kDAAkB,OAOA;AAN3B,mDAAsD;AACtD,qEAAgE;AAChE,wDAA8D;AAC9D,4CAAuE;AACvE,oFAAiG;AAIjG,uDAAuD;AAC1C,QAAA,6BAA6B,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAE/F,IAAI,OAAO,CAAC,wBAAe,CAAC,EAAE;QAC1B,MAAM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G,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;QAClC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE;QAC/B,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;KACjD,CAAC;IACF,IAAI,OAAO,CAAC,+BAAqB,CAAC,EAAE;QAChC,MAAM,CAAiB,+BAAqB,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;KACjF;SAAM;QACH,IAAI,CAAiB,+BAAqB,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;KAC/E;IAED,MAAM,uBAAuB,GAA4B;QACrD,aAAa,EAAE,4CAAgB,CAAC,MAAM;QACtC,cAAc,EAAE,IAAI,gBAAO,EAAoB,CAAC,KAAK;KACxD,CAAC;IACF,IAAI,OAAO,CAAC,mDAAuB,CAAC,EAAE;QAClC,MAAM,CAA0B,mDAAuB,CAAC,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;KACrG;SAAM;QACH,IAAI,CAA0B,mDAAuB,CAAC,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;KACnG;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-frontend-only-module.d.ts","sourceRoot":"","sources":["../../../src/browser-only/i18n/i18n-frontend-only-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;;AAI5C,wBAgBG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const localization_1 = require("../../common/i18n/localization");
|
|
20
|
+
const language_quick_pick_service_1 = require("../../browser/i18n/language-quick-pick-service");
|
|
21
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
22
|
+
const i18nMock = {
|
|
23
|
+
getCurrentLanguage: async () => 'en',
|
|
24
|
+
setCurrentLanguage: async (_languageId) => {
|
|
25
|
+
},
|
|
26
|
+
getAvailableLanguages: async () => [],
|
|
27
|
+
loadLocalization: async (_languageId) => ({
|
|
28
|
+
translations: {},
|
|
29
|
+
languageId: 'en'
|
|
30
|
+
})
|
|
31
|
+
};
|
|
32
|
+
bind(localization_1.AsyncLocalizationProvider).toConstantValue(i18nMock);
|
|
33
|
+
bind(language_quick_pick_service_1.LanguageQuickPickService).toSelf().inSingletonScope();
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=i18n-frontend-only-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-frontend-only-module.js","sourceRoot":"","sources":["../../../src/browser-only/i18n/i18n-frontend-only-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,yCAA4C;AAC5C,iEAAuG;AACvG,gGAA0F;AAE1F,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,MAAM,QAAQ,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAqB,EAAE,CAAC,IAAI;QACrD,kBAAkB,EAAE,KAAK,EAAE,WAAmB,EAAiB,EAAE;QAEjE,CAAC;QACD,qBAAqB,EAAE,KAAK,IAA6B,EAAE,CACvD,EAAE;QAEN,gBAAgB,EAAE,KAAK,EAAE,WAAmB,EAAyB,EAAE,CAAC,CAAC;YACrE,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,IAAI;SACnB,CAAC;KACL,CAAC;IACF,IAAI,CAAC,wCAAyB,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,sDAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AAC/D,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-frontend-only-module.d.ts","sourceRoot":"","sources":["../../src/browser-only/logger-frontend-only-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAa,MAAM,WAAW,CAAC;AAKvD,eAAO,MAAM,wBAAwB,iBAyCnC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.loggerFrontendOnlyModule = void 0;
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const logger_protocol_1 = require("../common/logger-protocol");
|
|
21
|
+
const logger_1 = require("../common/logger");
|
|
22
|
+
// is loaded directly after the regular logger frontend module
|
|
23
|
+
exports.loggerFrontendOnlyModule = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
24
|
+
const logger = {
|
|
25
|
+
setLogLevel: async (_name, _logLevel) => { },
|
|
26
|
+
getLogLevel: async (_name) => logger_protocol_1.LogLevel.INFO,
|
|
27
|
+
log: async (name, logLevel, message, params) => {
|
|
28
|
+
logger_protocol_1.ConsoleLogger.log(name, logLevel, message, params);
|
|
29
|
+
},
|
|
30
|
+
child: async (_name) => { },
|
|
31
|
+
dispose: () => {
|
|
32
|
+
},
|
|
33
|
+
setClient: (_client) => {
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
if (isBound(logger_protocol_1.ILoggerServer)) {
|
|
37
|
+
rebind(logger_protocol_1.ILoggerServer).toConstantValue(logger);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
bind(logger_protocol_1.ILoggerServer).toConstantValue(logger);
|
|
41
|
+
}
|
|
42
|
+
if (isBound(logger_protocol_1.ILoggerServer)) {
|
|
43
|
+
rebind(logger_1.LoggerFactory).toFactory(ctx => (name) => {
|
|
44
|
+
const child = new inversify_1.Container({ defaultScope: 'Singleton' });
|
|
45
|
+
child.parent = ctx.container;
|
|
46
|
+
child.bind(logger_1.ILogger).to(logger_1.Logger).inTransientScope();
|
|
47
|
+
child.bind(logger_1.LoggerName).toConstantValue(name);
|
|
48
|
+
return child.get(logger_1.ILogger);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
bind(logger_1.LoggerFactory).toFactory(ctx => (name) => {
|
|
53
|
+
const child = new inversify_1.Container({ defaultScope: 'Singleton' });
|
|
54
|
+
child.parent = ctx.container;
|
|
55
|
+
child.bind(logger_1.ILogger).to(logger_1.Logger).inTransientScope();
|
|
56
|
+
child.bind(logger_1.LoggerName).toConstantValue(name);
|
|
57
|
+
return child.get(logger_1.ILogger);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=logger-frontend-only-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-frontend-only-module.js","sourceRoot":"","sources":["../../src/browser-only/logger-frontend-only-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,yCAAuD;AACvD,+DAAkG;AAClG,6CAA8E;AAE9E,8DAA8D;AACjD,QAAA,wBAAwB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC1F,MAAM,MAAM,GAAkB;QAC1B,WAAW,EAAE,KAAK,EAAE,KAAa,EAAE,SAAiB,EAAiB,EAAE,GAAG,CAAC;QAC3E,WAAW,EAAE,KAAK,EAAE,KAAa,EAAmB,EAAE,CAAC,0BAAQ,CAAC,IAAI;QACpE,GAAG,EAAE,KAAK,EAAE,IAAY,EAAE,QAAgB,EAAE,OAAe,EAAE,MAAiB,EAAiB,EAAE;YAC7F,+BAAa,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,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E,CAAC,eAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;YAClD,KAAK,CAAC,IAAI,CAAC,mBAAU,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO,KAAK,CAAC,GAAG,CAAC,gBAAO,CAAC,CAAC;QAC9B,CAAC,CACJ,CAAC;KACL;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Event, RpcProxy, Channel } from '../../common';
|
|
2
|
+
import { ServiceConnectionProvider } from '../../browser/messaging/service-connection-provider';
|
|
3
|
+
import { ConnectionSource } from '../../browser/messaging/connection-source';
|
|
4
|
+
export declare class FrontendOnlyConnectionSource implements ConnectionSource {
|
|
5
|
+
onConnectionDidOpen: Event<Channel>;
|
|
6
|
+
}
|
|
7
|
+
export declare class FrontendOnlyServiceConnectionProvider extends ServiceConnectionProvider {
|
|
8
|
+
onSocketDidOpen: Event<any>;
|
|
9
|
+
onSocketDidClose: Event<any>;
|
|
10
|
+
onIncomingMessageActivity: Event<any>;
|
|
11
|
+
createProxy<T extends object>(path: unknown, target?: unknown): RpcProxy<T>;
|
|
12
|
+
listen(path: string, handler: ServiceConnectionProvider.ConnectionHandler, reconnect: boolean): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=frontend-only-service-connection-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-only-service-connection-provider.d.ts","sourceRoot":"","sources":["../../../src/browser-only/messaging/frontend-only-service-connection-provider.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAA4B,MAAM,cAAc,CAAC;AAElF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAE7E,qBACa,4BAA6B,YAAW,gBAAgB;IACjE,mBAAmB,iBAAgC;CACtD;AAED,qBACa,qCAAsC,SAAQ,yBAAyB;IAChF,eAAe,aAAc;IAC7B,gBAAgB,aAAc;IAC9B,yBAAyB,aAAc;IAC9B,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC;IAK3E,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB,CAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI;CAGhH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.FrontendOnlyServiceConnectionProvider = exports.FrontendOnlyConnectionSource = void 0;
|
|
10
|
+
// *****************************************************************************
|
|
11
|
+
// Copyright (C) 2023 EclipseSource and others.
|
|
12
|
+
//
|
|
13
|
+
// This program and the accompanying materials are made available under the
|
|
14
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
15
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
16
|
+
//
|
|
17
|
+
// This Source Code may also be made available under the following Secondary
|
|
18
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
19
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
20
|
+
// with the GNU Classpath Exception which is available at
|
|
21
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
22
|
+
//
|
|
23
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
24
|
+
// *****************************************************************************
|
|
25
|
+
const common_1 = require("../../common");
|
|
26
|
+
const inversify_1 = require("inversify");
|
|
27
|
+
const service_connection_provider_1 = require("../../browser/messaging/service-connection-provider");
|
|
28
|
+
let FrontendOnlyConnectionSource = class FrontendOnlyConnectionSource {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.onConnectionDidOpen = new common_1.Emitter().event;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
FrontendOnlyConnectionSource = __decorate([
|
|
34
|
+
(0, inversify_1.injectable)()
|
|
35
|
+
], FrontendOnlyConnectionSource);
|
|
36
|
+
exports.FrontendOnlyConnectionSource = FrontendOnlyConnectionSource;
|
|
37
|
+
let FrontendOnlyServiceConnectionProvider = class FrontendOnlyServiceConnectionProvider extends service_connection_provider_1.ServiceConnectionProvider {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.onSocketDidOpen = common_1.Event.None;
|
|
41
|
+
this.onSocketDidClose = common_1.Event.None;
|
|
42
|
+
this.onIncomingMessageActivity = common_1.Event.None;
|
|
43
|
+
}
|
|
44
|
+
createProxy(path, target) {
|
|
45
|
+
console.debug(`[Frontend-Only Fallback] Created proxy connection for ${path}`);
|
|
46
|
+
const factory = target instanceof common_1.RpcProxyFactory ? target : new common_1.RpcProxyFactory(target);
|
|
47
|
+
return factory.createProxy();
|
|
48
|
+
}
|
|
49
|
+
listen(path, handler, reconnect) {
|
|
50
|
+
console.debug('[Frontend-Only Fallback] Listen to websocket connection requested');
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
FrontendOnlyServiceConnectionProvider = __decorate([
|
|
54
|
+
(0, inversify_1.injectable)()
|
|
55
|
+
], FrontendOnlyServiceConnectionProvider);
|
|
56
|
+
exports.FrontendOnlyServiceConnectionProvider = FrontendOnlyServiceConnectionProvider;
|
|
57
|
+
//# sourceMappingURL=frontend-only-service-connection-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-only-service-connection-provider.js","sourceRoot":"","sources":["../../../src/browser-only/messaging/frontend-only-service-connection-provider.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,yCAAkF;AAClF,yCAAuC;AACvC,qGAAgG;AAIhG,IAAa,4BAA4B,GAAzC,MAAa,4BAA4B;IAAzC;QACI,wBAAmB,GAAG,IAAI,gBAAO,EAAW,CAAC,KAAK,CAAC;IACvD,CAAC;CAAA,CAAA;AAFY,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAExC;AAFY,oEAA4B;AAKzC,IAAa,qCAAqC,GAAlD,MAAa,qCAAsC,SAAQ,uDAAyB;IAApF;;QACI,oBAAe,GAAG,cAAK,CAAC,IAAI,CAAC;QAC7B,qBAAgB,GAAG,cAAK,CAAC,IAAI,CAAC;QAC9B,8BAAyB,GAAG,cAAK,CAAC,IAAI,CAAC;IAS3C,CAAC;IARY,WAAW,CAAmB,IAAa,EAAE,MAAgB;QAClE,OAAO,CAAC,KAAK,CAAC,yDAAyD,IAAI,EAAE,CAAC,CAAC;QAC/E,MAAM,OAAO,GAAG,MAAM,YAAY,wBAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,wBAAe,CAAI,MAAM,CAAC,CAAC;QAC5F,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC;IACjC,CAAC;IACQ,MAAM,CAAC,IAAY,EAAE,OAAoD,EAAE,SAAkB;QAClG,OAAO,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;CACJ,CAAA;AAZY,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAYjD;AAZY,sFAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messaging-frontend-only-module.d.ts","sourceRoot":"","sources":["../../../src/browser-only/messaging/messaging-frontend-only-module.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAO5C,eAAO,MAAM,2BAA2B,iBAmBtC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messagingFrontendOnlyModule = void 0;
|
|
4
|
+
// *****************************************************************************
|
|
5
|
+
// Copyright (C) 2023 EclipseSource and others.
|
|
6
|
+
//
|
|
7
|
+
// This program and the accompanying materials are made available under the
|
|
8
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
//
|
|
11
|
+
// This Source Code may also be made available under the following Secondary
|
|
12
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
// with the GNU Classpath Exception which is available at
|
|
15
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
//
|
|
17
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
18
|
+
// *****************************************************************************
|
|
19
|
+
const inversify_1 = require("inversify");
|
|
20
|
+
const ws_connection_source_1 = require("../../browser/messaging/ws-connection-source");
|
|
21
|
+
const frontend_only_service_connection_provider_1 = require("./frontend-only-service-connection-provider");
|
|
22
|
+
const connection_source_1 = require("../../browser/messaging/connection-source");
|
|
23
|
+
const service_connection_provider_1 = require("../../browser/messaging/service-connection-provider");
|
|
24
|
+
// is loaded directly after the regular message frontend module
|
|
25
|
+
exports.messagingFrontendOnlyModule = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26
|
+
unbind(ws_connection_source_1.WebSocketConnectionSource);
|
|
27
|
+
bind(frontend_only_service_connection_provider_1.FrontendOnlyConnectionSource).toSelf().inSingletonScope();
|
|
28
|
+
if (isBound(connection_source_1.ConnectionSource)) {
|
|
29
|
+
rebind(connection_source_1.ConnectionSource).toService(frontend_only_service_connection_provider_1.FrontendOnlyConnectionSource);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
bind(connection_source_1.ConnectionSource).toService(frontend_only_service_connection_provider_1.FrontendOnlyConnectionSource);
|
|
33
|
+
}
|
|
34
|
+
bind(frontend_only_service_connection_provider_1.FrontendOnlyServiceConnectionProvider).toSelf().inSingletonScope();
|
|
35
|
+
if (isBound(service_connection_provider_1.LocalConnectionProvider)) {
|
|
36
|
+
rebind(service_connection_provider_1.LocalConnectionProvider).toService(frontend_only_service_connection_provider_1.FrontendOnlyServiceConnectionProvider);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
bind(service_connection_provider_1.LocalConnectionProvider).toService(frontend_only_service_connection_provider_1.FrontendOnlyServiceConnectionProvider);
|
|
40
|
+
}
|
|
41
|
+
if (isBound(service_connection_provider_1.RemoteConnectionProvider)) {
|
|
42
|
+
rebind(service_connection_provider_1.RemoteConnectionProvider).toService(frontend_only_service_connection_provider_1.FrontendOnlyServiceConnectionProvider);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
bind(service_connection_provider_1.RemoteConnectionProvider).toService(frontend_only_service_connection_provider_1.FrontendOnlyServiceConnectionProvider);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=messaging-frontend-only-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messaging-frontend-only-module.js","sourceRoot":"","sources":["../../../src/browser-only/messaging/messaging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AC;KACnF;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-only-preload-module.d.ts","sourceRoot":"","sources":["../../../src/browser-only/preload/frontend-only-preload-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;;AAM5C,wBA0BG"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2023 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const localization_server_1 = require("../../common/i18n/localization-server");
|
|
20
|
+
const os_1 = require("../../common/os");
|
|
21
|
+
// loaded after regular preload module
|
|
22
|
+
exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
23
|
+
const frontendOnlyLocalizationServer = {
|
|
24
|
+
loadLocalization: async (languageId) => ({ translations: {}, languageId })
|
|
25
|
+
};
|
|
26
|
+
if (isBound(localization_server_1.LocalizationServer)) {
|
|
27
|
+
rebind(localization_server_1.LocalizationServer).toConstantValue(frontendOnlyLocalizationServer);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
bind(localization_server_1.LocalizationServer).toConstantValue(frontendOnlyLocalizationServer);
|
|
31
|
+
}
|
|
32
|
+
const frontendOnlyOSBackendProvider = {
|
|
33
|
+
getBackendOS: async () => {
|
|
34
|
+
if (window.navigator.platform.startsWith('Win')) {
|
|
35
|
+
return os_1.OS.Type.Windows;
|
|
36
|
+
}
|
|
37
|
+
else if (window.navigator.platform.startsWith('Mac')) {
|
|
38
|
+
return os_1.OS.Type.OSX;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return os_1.OS.Type.Linux;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
if (isBound(os_1.OSBackendProvider)) {
|
|
46
|
+
rebind(os_1.OSBackendProvider).toConstantValue(frontendOnlyOSBackendProvider);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
bind(os_1.OSBackendProvider).toConstantValue(frontendOnlyOSBackendProvider);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=frontend-only-preload-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-only-preload-module.js","sourceRoot":"","sources":["../../../src/browser-only/preload/frontend-only-preload-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,yCAA4C;AAC5C,+EAA2E;AAC3E,wCAAwD;AAGxD,sCAAsC;AACtC,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,MAAM,8BAA8B,GAAuB;QACvD,gBAAgB,EAAE,KAAK,EAAE,UAAkB,EAAyB,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC;KAC5G,CAAC;IACF,IAAI,OAAO,CAAC,wCAAkB,CAAC,EAAE;QAC7B,MAAM,CAAC,wCAAkB,CAAC,CAAC,eAAe,CAAC,8BAA8B,CAAC,CAAC;KAC9E;SAAM;QACH,IAAI,CAAC,wCAAkB,CAAC,CAAC,eAAe,CAAC,8BAA8B,CAAC,CAAC;KAC5E;IAED,MAAM,6BAA6B,GAAsB;QACrD,YAAY,EAAE,KAAK,IAAsB,EAAE;YACvC,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;gBAC7C,OAAO,OAAE,CAAC,IAAI,CAAC,OAAO,CAAC;aAC1B;iBAAM,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;gBACpD,OAAO,OAAE,CAAC,IAAI,CAAC,GAAG,CAAC;aACtB;iBAAM;gBACH,OAAO,OAAE,CAAC,IAAI,CAAC,KAAK,CAAC;aACxB;QACL,CAAC;KACJ,CAAC;IACF,IAAI,OAAO,CAAC,sBAAiB,CAAC,EAAE;QAC5B,MAAM,CAAC,sBAAiB,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;KAC5E;SAAM;QACH,IAAI,CAAC,sBAAiB,CAAC,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;KAC1E;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ export declare const ApplicationServer: unique symbol;
|
|
|
4
4
|
export interface ApplicationServer {
|
|
5
5
|
getExtensionsInfos(): Promise<ExtensionInfo[]>;
|
|
6
6
|
getApplicationInfo(): Promise<ApplicationInfo | undefined>;
|
|
7
|
+
getApplicationRoot(): Promise<string>;
|
|
7
8
|
/**
|
|
8
9
|
* @deprecated since 1.25.0. Use `OS.backend.type()` instead.
|
|
9
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-protocol.d.ts","sourceRoot":"","sources":["../../src/common/application-protocol.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IAC9B,kBAAkB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAC/C,kBAAkB,IAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IAC3D;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"application-protocol.d.ts","sourceRoot":"","sources":["../../src/common/application-protocol.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAEvD,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IAC9B,kBAAkB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAC/C,kBAAkB,IAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IAC3D,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACtC;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -41,4 +41,13 @@ export declare namespace DisposableGroup {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
export declare function disposableTimeout(...args: Parameters<typeof setTimeout>): Disposable;
|
|
44
|
+
/**
|
|
45
|
+
* Wrapper for a {@link Disposable} that is not available immediately.
|
|
46
|
+
*/
|
|
47
|
+
export declare class DisposableWrapper implements Disposable {
|
|
48
|
+
private disposed;
|
|
49
|
+
private disposable;
|
|
50
|
+
set(disposable: Disposable): void;
|
|
51
|
+
dispose(): void;
|
|
52
|
+
}
|
|
44
53
|
//# sourceMappingURL=disposable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../../src/common/disposable.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzC,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED,yBAAiB,UAAU,CAAC;IACxB,SAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAElD;IACD,SAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,UAAU,CAEnD;IACD,uDAAuD;IACxC,MAAM,IAAI,EAAE,UAAU,CAAC;CACzC;AAcD,qBAAa,oBAAqB,YAAW,UAAU;IAEnD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,CAAM;IAClD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,gBAAuB;gBAE9C,GAAG,SAAS,EAAE,UAAU,EAAE;IAItC;;;OAGG;IACH,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,CAE3B;IAED,SAAS,CAAC,aAAa,IAAI,IAAI;IAO/B,IAAI,QAAQ,IAAI,O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15,7 @@
|
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.disposableTimeout = exports.DisposableGroup = exports.DisposableCollection = exports.Disposable = void 0;
|
|
18
|
+
exports.DisposableWrapper = exports.disposableTimeout = exports.DisposableGroup = exports.DisposableCollection = exports.Disposable = void 0;
|
|
19
19
|
const event_1 = require("./event");
|
|
20
20
|
const types_1 = require("./types");
|
|
21
21
|
var Disposable;
|
|
@@ -118,4 +118,29 @@ function disposableTimeout(...args) {
|
|
|
118
118
|
return { dispose: () => clearTimeout(handle) };
|
|
119
119
|
}
|
|
120
120
|
exports.disposableTimeout = disposableTimeout;
|
|
121
|
+
/**
|
|
122
|
+
* Wrapper for a {@link Disposable} that is not available immediately.
|
|
123
|
+
*/
|
|
124
|
+
class DisposableWrapper {
|
|
125
|
+
constructor() {
|
|
126
|
+
this.disposed = false;
|
|
127
|
+
this.disposable = undefined;
|
|
128
|
+
}
|
|
129
|
+
set(disposable) {
|
|
130
|
+
if (this.disposed) {
|
|
131
|
+
disposable.dispose();
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
this.disposable = disposable;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
dispose() {
|
|
138
|
+
this.disposed = true;
|
|
139
|
+
if (this.disposable) {
|
|
140
|
+
this.disposable.dispose();
|
|
141
|
+
this.disposable = undefined;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.DisposableWrapper = DisposableWrapper;
|
|
121
146
|
//# sourceMappingURL=disposable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disposable.js","sourceRoot":"","sources":["../../src/common/disposable.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;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":3,"file":"file-uri.d.ts","sourceRoot":"","sources":["../../src/common/file-uri.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,OAAO,CAAC;AAGxB,yBAAiB,OAAO,CAAC;IAIrB;;;OAGG;IACH,SAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAE3C;IAED;;;;OAIG;IACH,SAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAqBhD;CAEJ"}
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.FileUri = void 0;
|
|
19
19
|
const vscode_uri_1 = require("vscode-uri");
|
|
20
|
-
const uri_1 = require("
|
|
21
|
-
const os_1 = require("
|
|
20
|
+
const uri_1 = require("./uri");
|
|
21
|
+
const os_1 = require("./os");
|
|
22
22
|
var FileUri;
|
|
23
23
|
(function (FileUri) {
|
|
24
24
|
const windowsDriveRegex = /^([^:/?#]+?):$/;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-uri.js","sourceRoot":"","sources":["../../src/common/file-uri.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,2CAAwC;AACxC,+BAAwB;AACxB,6BAAiC;AAEjC,IAAiB,OAAO,CAwCvB;AAxCD,WAAiB,OAAO;IAEpB,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;IAE3C;;;OAGG;IACH,SAAgB,MAAM,CAAC,OAAe;QAClC,OAAO,IAAI,aAAG,CAAC,gBAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACtC,CAAC;IAFe,cAAM,SAErB,CAAA;IAED;;;;OAIG;IACH,SAAgB,MAAM,CAAC,GAAiB;QACpC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YACzB,OAAO,MAAM,CAAC,IAAI,aAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SAC/B;aAAM;YACH;;;;;;eAMG;YACH,8DAA8D;YAC9D,MAAM,mBAAmB,GAAI,GAAW,CAAC,OAAO,CAAC,MAAM,CAAC;YACxD,IAAI,cAAS,EAAE;gBACX,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBACvE,IAAI,kBAAkB,EAAE;oBACpB,OAAO,mBAAmB,GAAG,IAAI,CAAC;iBACrC;aACJ;YACD,OAAO,mBAAmB,CAAC;SAC9B;IACL,CAAC;IArBe,cAAM,SAqBrB,CAAA;AAEL,CAAC,EAxCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAwCvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommandRegistry, Command } from '../command';
|
|
1
|
+
import { Command, CommandRegistry } from '../command';
|
|
3
2
|
import { ContributionProvider } from '../contribution-provider';
|
|
3
|
+
import { Disposable } from '../disposable';
|
|
4
4
|
import { CompositeMenuNode } from './composite-menu-node';
|
|
5
5
|
import { CompoundMenuNode, MenuAction, MenuNode, MenuPath, MutableCompoundMenuNode, SubMenuOptions } from './menu-types';
|
|
6
6
|
export declare const MenuContribution: unique symbol;
|