@theia/remote 1.45.0 → 1.46.0-next.72

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.
Files changed (87) hide show
  1. package/README.md +61 -61
  2. package/lib/electron-browser/remote-electron-file-dialog-service.d.ts +13 -13
  3. package/lib/electron-browser/remote-electron-file-dialog-service.js +57 -57
  4. package/lib/electron-browser/remote-frontend-contribution.d.ts +25 -25
  5. package/lib/electron-browser/remote-frontend-contribution.js +164 -164
  6. package/lib/electron-browser/remote-frontend-module.d.ts +3 -3
  7. package/lib/electron-browser/remote-frontend-module.js +42 -42
  8. package/lib/electron-browser/remote-preferences.d.ts +10 -10
  9. package/lib/electron-browser/remote-preferences.js +48 -48
  10. package/lib/electron-browser/remote-registry-contribution.d.ts +18 -18
  11. package/lib/electron-browser/remote-registry-contribution.js +74 -74
  12. package/lib/electron-browser/remote-service.d.ts +5 -5
  13. package/lib/electron-browser/remote-service.js +37 -37
  14. package/lib/electron-browser/remote-ssh-contribution.d.ts +17 -17
  15. package/lib/electron-browser/remote-ssh-contribution.js +117 -117
  16. package/lib/electron-common/remote-ssh-connection-provider.d.ts +10 -10
  17. package/lib/electron-common/remote-ssh-connection-provider.js +20 -20
  18. package/lib/electron-common/remote-status-service.d.ts +14 -14
  19. package/lib/electron-common/remote-status-service.js +20 -20
  20. package/lib/electron-node/backend-remote-service-impl.d.ts +11 -11
  21. package/lib/electron-node/backend-remote-service-impl.js +50 -50
  22. package/lib/electron-node/remote-backend-module.d.ts +4 -4
  23. package/lib/electron-node/remote-backend-module.js +74 -74
  24. package/lib/electron-node/remote-connection-service.d.ts +14 -14
  25. package/lib/electron-node/remote-connection-service.js +65 -65
  26. package/lib/electron-node/remote-connection-socket-provider.d.ts +8 -8
  27. package/lib/electron-node/remote-connection-socket-provider.js +37 -37
  28. package/lib/electron-node/remote-proxy-server-provider.d.ts +5 -5
  29. package/lib/electron-node/remote-proxy-server-provider.js +43 -43
  30. package/lib/electron-node/remote-status-service.d.ts +6 -6
  31. package/lib/electron-node/remote-status-service.js +54 -54
  32. package/lib/electron-node/remote-types.d.ts +34 -34
  33. package/lib/electron-node/remote-types.js +17 -17
  34. package/lib/electron-node/setup/app-native-dependency-contribution.d.ts +7 -7
  35. package/lib/electron-node/setup/app-native-dependency-contribution.js +57 -57
  36. package/lib/electron-node/setup/main-copy-contribution.d.ts +4 -4
  37. package/lib/electron-node/setup/main-copy-contribution.js +37 -37
  38. package/lib/electron-node/setup/remote-copy-contribution.d.ts +28 -28
  39. package/lib/electron-node/setup/remote-copy-contribution.js +78 -78
  40. package/lib/electron-node/setup/remote-copy-service.d.ts +18 -18
  41. package/lib/electron-node/setup/remote-copy-service.js +126 -126
  42. package/lib/electron-node/setup/remote-native-dependency-contribution.d.ts +34 -34
  43. package/lib/electron-node/setup/remote-native-dependency-contribution.js +34 -34
  44. package/lib/electron-node/setup/remote-native-dependency-service.d.ts +23 -23
  45. package/lib/electron-node/setup/remote-native-dependency-service.js +118 -118
  46. package/lib/electron-node/setup/remote-node-setup-service.d.ts +22 -22
  47. package/lib/electron-node/setup/remote-node-setup-service.js +132 -132
  48. package/lib/electron-node/setup/remote-setup-script-service.d.ts +40 -40
  49. package/lib/electron-node/setup/remote-setup-script-service.js +132 -132
  50. package/lib/electron-node/setup/remote-setup-service.d.ts +28 -28
  51. package/lib/electron-node/setup/remote-setup-service.js +198 -198
  52. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts +55 -55
  53. package/lib/electron-node/ssh/remote-ssh-connection-provider.d.ts.map +1 -1
  54. package/lib/electron-node/ssh/remote-ssh-connection-provider.js +344 -342
  55. package/lib/electron-node/ssh/remote-ssh-connection-provider.js.map +1 -1
  56. package/lib/electron-node/ssh/ssh-identity-file-collector.d.ts +12 -12
  57. package/lib/electron-node/ssh/ssh-identity-file-collector.js +131 -131
  58. package/lib/package.spec.js +25 -25
  59. package/package.json +6 -7
  60. package/src/electron-browser/remote-electron-file-dialog-service.ts +47 -47
  61. package/src/electron-browser/remote-frontend-contribution.ts +145 -145
  62. package/src/electron-browser/remote-frontend-module.ts +49 -49
  63. package/src/electron-browser/remote-preferences.ts +62 -62
  64. package/src/electron-browser/remote-registry-contribution.ts +70 -70
  65. package/src/electron-browser/remote-service.ts +31 -31
  66. package/src/electron-browser/remote-ssh-contribution.ts +102 -102
  67. package/src/electron-common/remote-ssh-connection-provider.ts +29 -29
  68. package/src/electron-common/remote-status-service.ts +35 -35
  69. package/src/electron-node/backend-remote-service-impl.ts +45 -45
  70. package/src/electron-node/remote-backend-module.ts +80 -80
  71. package/src/electron-node/remote-connection-service.ts +55 -55
  72. package/src/electron-node/remote-connection-socket-provider.ts +34 -34
  73. package/src/electron-node/remote-proxy-server-provider.ts +37 -37
  74. package/src/electron-node/remote-status-service.ts +41 -41
  75. package/src/electron-node/remote-types.ts +56 -56
  76. package/src/electron-node/setup/app-native-dependency-contribution.ts +48 -48
  77. package/src/electron-node/setup/main-copy-contribution.ts +28 -28
  78. package/src/electron-node/setup/remote-copy-contribution.ts +90 -90
  79. package/src/electron-node/setup/remote-copy-service.ts +114 -114
  80. package/src/electron-node/setup/remote-native-dependency-contribution.ts +63 -63
  81. package/src/electron-node/setup/remote-native-dependency-service.ts +111 -111
  82. package/src/electron-node/setup/remote-node-setup-service.ts +123 -123
  83. package/src/electron-node/setup/remote-setup-script-service.ts +146 -146
  84. package/src/electron-node/setup/remote-setup-service.ts +197 -197
  85. package/src/electron-node/ssh/remote-ssh-connection-provider.ts +358 -356
  86. package/src/electron-node/ssh/ssh-identity-file-collector.ts +137 -137
  87. package/src/package.spec.ts +29 -29
@@ -1,165 +1,165 @@
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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.RemoteFrontendContribution = exports.RemoteCommands = void 0;
28
- const core_1 = require("@theia/core");
29
- const browser_1 = require("@theia/core/lib/browser");
30
- const inversify_1 = require("@theia/core/shared/inversify");
31
- const remote_status_service_1 = require("../electron-common/remote-status-service");
32
- const remote_registry_contribution_1 = require("./remote-registry-contribution");
33
- const remote_service_1 = require("./remote-service");
34
- const window_service_1 = require("@theia/core/lib/browser/window/window-service");
35
- var RemoteCommands;
36
- (function (RemoteCommands) {
37
- RemoteCommands.REMOTE_SELECT = {
38
- id: 'remote.select'
39
- };
40
- RemoteCommands.REMOTE_DISCONNECT = core_1.Command.toDefaultLocalizedCommand({
41
- id: 'remote.disconnect',
42
- label: 'Close Remote Connection',
43
- });
44
- })(RemoteCommands = exports.RemoteCommands || (exports.RemoteCommands = {}));
45
- let RemoteFrontendContribution = class RemoteFrontendContribution {
46
- constructor() {
47
- this.remoteRegistry = new remote_registry_contribution_1.RemoteRegistry();
48
- }
49
- async configure() {
50
- const port = new URLSearchParams(location.search).get('port');
51
- if (port) {
52
- const status = await this.remoteStatusService.getStatus(Number(port));
53
- await this.setStatusBar(status);
54
- }
55
- else {
56
- await this.setStatusBar({
57
- alive: false
58
- });
59
- }
60
- }
61
- async setStatusBar(info) {
62
- this.remoteService.setConnected(info.alive);
63
- const entry = {
64
- alignment: browser_1.StatusBarAlignment.LEFT,
65
- command: RemoteCommands.REMOTE_SELECT.id,
66
- backgroundColor: 'var(--theia-statusBarItem-remoteBackground)',
67
- color: 'var(--theia-statusBarItem-remoteForeground)',
68
- priority: 10000,
69
- ...(info.alive
70
- ? {
71
- text: `$(codicon-remote) ${info.type}: ${info.name.length > 35 ? info.name.substring(0, 32) + '...' : info.name}`,
72
- tooltip: core_1.nls.localizeByDefault('Editing on {0}', info.name),
73
- } : {
74
- text: '$(codicon-remote)',
75
- tooltip: core_1.nls.localizeByDefault('Open a Remote Window'),
76
- })
77
- };
78
- this.statusBar.setElement('remoteStatus', entry);
79
- }
80
- registerCommands(commands) {
81
- this.remoteRegistry.onDidRegisterCommand(([command, handler]) => {
82
- commands.registerCommand(command, handler);
83
- });
84
- for (const contribution of this.remoteRegistryContributions.getContributions()) {
85
- contribution.registerRemoteCommands(this.remoteRegistry);
86
- }
87
- commands.registerCommand(RemoteCommands.REMOTE_SELECT, {
88
- execute: () => this.selectRemote()
89
- });
90
- commands.registerCommand(RemoteCommands.REMOTE_DISCONNECT, {
91
- execute: () => this.disconnectRemote()
92
- });
93
- }
94
- disconnectRemote() {
95
- const port = new URLSearchParams(location.search).get('localPort');
96
- if (port) {
97
- this.windowService.reload({
98
- port
99
- });
100
- }
101
- }
102
- async selectRemote() {
103
- var _a;
104
- const commands = [...this.remoteRegistry.commands];
105
- if (this.remoteService.isConnected()) {
106
- commands.push(RemoteCommands.REMOTE_DISCONNECT);
107
- }
108
- const quickPicks = [];
109
- let previousCategory = undefined;
110
- for (const command of commands) {
111
- if (previousCategory !== command.category) {
112
- quickPicks.push({
113
- type: 'separator',
114
- label: command.category
115
- });
116
- previousCategory = command.category;
117
- }
118
- quickPicks.push({
119
- label: command.label,
120
- id: command.id
121
- });
122
- }
123
- const selection = await ((_a = this.quickInputService) === null || _a === void 0 ? void 0 : _a.showQuickPick(quickPicks, {
124
- placeholder: core_1.nls.localizeByDefault('Select an option to open a Remote Window')
125
- }));
126
- if (selection) {
127
- this.commandRegistry.executeCommand(selection.id);
128
- }
129
- }
130
- };
131
- __decorate([
132
- (0, inversify_1.inject)(browser_1.StatusBar),
133
- __metadata("design:type", Object)
134
- ], RemoteFrontendContribution.prototype, "statusBar", void 0);
135
- __decorate([
136
- (0, inversify_1.inject)(core_1.QuickInputService),
137
- (0, inversify_1.optional)(),
138
- __metadata("design:type", Object)
139
- ], RemoteFrontendContribution.prototype, "quickInputService", void 0);
140
- __decorate([
141
- (0, inversify_1.inject)(core_1.CommandRegistry),
142
- __metadata("design:type", core_1.CommandRegistry)
143
- ], RemoteFrontendContribution.prototype, "commandRegistry", void 0);
144
- __decorate([
145
- (0, inversify_1.inject)(remote_service_1.RemoteService),
146
- __metadata("design:type", remote_service_1.RemoteService)
147
- ], RemoteFrontendContribution.prototype, "remoteService", void 0);
148
- __decorate([
149
- (0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
150
- __metadata("design:type", Object)
151
- ], RemoteFrontendContribution.prototype, "remoteStatusService", void 0);
152
- __decorate([
153
- (0, inversify_1.inject)(window_service_1.WindowService),
154
- __metadata("design:type", Object)
155
- ], RemoteFrontendContribution.prototype, "windowService", void 0);
156
- __decorate([
157
- (0, inversify_1.inject)(core_1.ContributionProvider),
158
- (0, inversify_1.named)(remote_registry_contribution_1.RemoteRegistryContribution),
159
- __metadata("design:type", Object)
160
- ], RemoteFrontendContribution.prototype, "remoteRegistryContributions", void 0);
161
- RemoteFrontendContribution = __decorate([
162
- (0, inversify_1.injectable)()
163
- ], RemoteFrontendContribution);
164
- exports.RemoteFrontendContribution = RemoteFrontendContribution;
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
+ 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;
21
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
22
+ };
23
+ var __metadata = (this && this.__metadata) || function (k, v) {
24
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.RemoteFrontendContribution = exports.RemoteCommands = void 0;
28
+ const core_1 = require("@theia/core");
29
+ const browser_1 = require("@theia/core/lib/browser");
30
+ const inversify_1 = require("@theia/core/shared/inversify");
31
+ const remote_status_service_1 = require("../electron-common/remote-status-service");
32
+ const remote_registry_contribution_1 = require("./remote-registry-contribution");
33
+ const remote_service_1 = require("./remote-service");
34
+ const window_service_1 = require("@theia/core/lib/browser/window/window-service");
35
+ var RemoteCommands;
36
+ (function (RemoteCommands) {
37
+ RemoteCommands.REMOTE_SELECT = {
38
+ id: 'remote.select'
39
+ };
40
+ RemoteCommands.REMOTE_DISCONNECT = core_1.Command.toDefaultLocalizedCommand({
41
+ id: 'remote.disconnect',
42
+ label: 'Close Remote Connection',
43
+ });
44
+ })(RemoteCommands = exports.RemoteCommands || (exports.RemoteCommands = {}));
45
+ let RemoteFrontendContribution = class RemoteFrontendContribution {
46
+ constructor() {
47
+ this.remoteRegistry = new remote_registry_contribution_1.RemoteRegistry();
48
+ }
49
+ async configure() {
50
+ const port = new URLSearchParams(location.search).get('port');
51
+ if (port) {
52
+ const status = await this.remoteStatusService.getStatus(Number(port));
53
+ await this.setStatusBar(status);
54
+ }
55
+ else {
56
+ await this.setStatusBar({
57
+ alive: false
58
+ });
59
+ }
60
+ }
61
+ async setStatusBar(info) {
62
+ this.remoteService.setConnected(info.alive);
63
+ const entry = {
64
+ alignment: browser_1.StatusBarAlignment.LEFT,
65
+ command: RemoteCommands.REMOTE_SELECT.id,
66
+ backgroundColor: 'var(--theia-statusBarItem-remoteBackground)',
67
+ color: 'var(--theia-statusBarItem-remoteForeground)',
68
+ priority: 10000,
69
+ ...(info.alive
70
+ ? {
71
+ text: `$(codicon-remote) ${info.type}: ${info.name.length > 35 ? info.name.substring(0, 32) + '...' : info.name}`,
72
+ tooltip: core_1.nls.localizeByDefault('Editing on {0}', info.name),
73
+ } : {
74
+ text: '$(codicon-remote)',
75
+ tooltip: core_1.nls.localizeByDefault('Open a Remote Window'),
76
+ })
77
+ };
78
+ this.statusBar.setElement('remoteStatus', entry);
79
+ }
80
+ registerCommands(commands) {
81
+ this.remoteRegistry.onDidRegisterCommand(([command, handler]) => {
82
+ commands.registerCommand(command, handler);
83
+ });
84
+ for (const contribution of this.remoteRegistryContributions.getContributions()) {
85
+ contribution.registerRemoteCommands(this.remoteRegistry);
86
+ }
87
+ commands.registerCommand(RemoteCommands.REMOTE_SELECT, {
88
+ execute: () => this.selectRemote()
89
+ });
90
+ commands.registerCommand(RemoteCommands.REMOTE_DISCONNECT, {
91
+ execute: () => this.disconnectRemote()
92
+ });
93
+ }
94
+ disconnectRemote() {
95
+ const port = new URLSearchParams(location.search).get('localPort');
96
+ if (port) {
97
+ this.windowService.reload({
98
+ port
99
+ });
100
+ }
101
+ }
102
+ async selectRemote() {
103
+ var _a;
104
+ const commands = [...this.remoteRegistry.commands];
105
+ if (this.remoteService.isConnected()) {
106
+ commands.push(RemoteCommands.REMOTE_DISCONNECT);
107
+ }
108
+ const quickPicks = [];
109
+ let previousCategory = undefined;
110
+ for (const command of commands) {
111
+ if (previousCategory !== command.category) {
112
+ quickPicks.push({
113
+ type: 'separator',
114
+ label: command.category
115
+ });
116
+ previousCategory = command.category;
117
+ }
118
+ quickPicks.push({
119
+ label: command.label,
120
+ id: command.id
121
+ });
122
+ }
123
+ const selection = await ((_a = this.quickInputService) === null || _a === void 0 ? void 0 : _a.showQuickPick(quickPicks, {
124
+ placeholder: core_1.nls.localizeByDefault('Select an option to open a Remote Window')
125
+ }));
126
+ if (selection) {
127
+ this.commandRegistry.executeCommand(selection.id);
128
+ }
129
+ }
130
+ };
131
+ __decorate([
132
+ (0, inversify_1.inject)(browser_1.StatusBar),
133
+ __metadata("design:type", Object)
134
+ ], RemoteFrontendContribution.prototype, "statusBar", void 0);
135
+ __decorate([
136
+ (0, inversify_1.inject)(core_1.QuickInputService),
137
+ (0, inversify_1.optional)(),
138
+ __metadata("design:type", Object)
139
+ ], RemoteFrontendContribution.prototype, "quickInputService", void 0);
140
+ __decorate([
141
+ (0, inversify_1.inject)(core_1.CommandRegistry),
142
+ __metadata("design:type", core_1.CommandRegistry)
143
+ ], RemoteFrontendContribution.prototype, "commandRegistry", void 0);
144
+ __decorate([
145
+ (0, inversify_1.inject)(remote_service_1.RemoteService),
146
+ __metadata("design:type", remote_service_1.RemoteService)
147
+ ], RemoteFrontendContribution.prototype, "remoteService", void 0);
148
+ __decorate([
149
+ (0, inversify_1.inject)(remote_status_service_1.RemoteStatusService),
150
+ __metadata("design:type", Object)
151
+ ], RemoteFrontendContribution.prototype, "remoteStatusService", void 0);
152
+ __decorate([
153
+ (0, inversify_1.inject)(window_service_1.WindowService),
154
+ __metadata("design:type", Object)
155
+ ], RemoteFrontendContribution.prototype, "windowService", void 0);
156
+ __decorate([
157
+ (0, inversify_1.inject)(core_1.ContributionProvider),
158
+ (0, inversify_1.named)(remote_registry_contribution_1.RemoteRegistryContribution),
159
+ __metadata("design:type", Object)
160
+ ], RemoteFrontendContribution.prototype, "remoteRegistryContributions", void 0);
161
+ RemoteFrontendContribution = __decorate([
162
+ (0, inversify_1.injectable)()
163
+ ], RemoteFrontendContribution);
164
+ exports.RemoteFrontendContribution = RemoteFrontendContribution;
165
165
  //# sourceMappingURL=remote-frontend-contribution.js.map
@@ -1,4 +1,4 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
1
+ import { ContainerModule } from '@theia/core/shared/inversify';
2
+ declare const _default: ContainerModule;
3
+ export default _default;
4
4
  //# sourceMappingURL=remote-frontend-module.d.ts.map
@@ -1,43 +1,43 @@
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 core_1 = require("@theia/core");
19
- const inversify_1 = require("@theia/core/shared/inversify");
20
- const browser_1 = require("@theia/core/lib/browser");
21
- const remote_ssh_contribution_1 = require("./remote-ssh-contribution");
22
- const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
23
- const remote_frontend_contribution_1 = require("./remote-frontend-contribution");
24
- const remote_registry_contribution_1 = require("./remote-registry-contribution");
25
- const remote_service_1 = require("./remote-service");
26
- const remote_status_service_1 = require("../electron-common/remote-status-service");
27
- const electron_file_dialog_service_1 = require("@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service");
28
- const remote_electron_file_dialog_service_1 = require("./remote-electron-file-dialog-service");
29
- const remote_preferences_1 = require("./remote-preferences");
30
- exports.default = new inversify_1.ContainerModule((bind, _, __, rebind) => {
31
- bind(remote_frontend_contribution_1.RemoteFrontendContribution).toSelf().inSingletonScope();
32
- bind(browser_1.FrontendApplicationContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
33
- bind(core_1.CommandContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
34
- (0, core_1.bindContributionProvider)(bind, remote_registry_contribution_1.RemoteRegistryContribution);
35
- bind(remote_ssh_contribution_1.RemoteSSHContribution).toSelf().inSingletonScope();
36
- bind(remote_registry_contribution_1.RemoteRegistryContribution).toService(remote_ssh_contribution_1.RemoteSSHContribution);
37
- (0, remote_preferences_1.bindRemotePreferences)(bind);
38
- rebind(electron_file_dialog_service_1.ElectronFileDialogService).to(remote_electron_file_dialog_service_1.RemoteElectronFileDialogService).inSingletonScope();
39
- bind(remote_service_1.RemoteService).toSelf().inSingletonScope();
40
- bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createLocalProxy(ctx.container, remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath)).inSingletonScope();
41
- bind(remote_status_service_1.RemoteStatusService).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createLocalProxy(ctx.container, remote_status_service_1.RemoteStatusServicePath)).inSingletonScope();
42
- });
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 core_1 = require("@theia/core");
19
+ const inversify_1 = require("@theia/core/shared/inversify");
20
+ const browser_1 = require("@theia/core/lib/browser");
21
+ const remote_ssh_contribution_1 = require("./remote-ssh-contribution");
22
+ const remote_ssh_connection_provider_1 = require("../electron-common/remote-ssh-connection-provider");
23
+ const remote_frontend_contribution_1 = require("./remote-frontend-contribution");
24
+ const remote_registry_contribution_1 = require("./remote-registry-contribution");
25
+ const remote_service_1 = require("./remote-service");
26
+ const remote_status_service_1 = require("../electron-common/remote-status-service");
27
+ const electron_file_dialog_service_1 = require("@theia/filesystem/lib/electron-browser/file-dialog/electron-file-dialog-service");
28
+ const remote_electron_file_dialog_service_1 = require("./remote-electron-file-dialog-service");
29
+ const remote_preferences_1 = require("./remote-preferences");
30
+ exports.default = new inversify_1.ContainerModule((bind, _, __, rebind) => {
31
+ bind(remote_frontend_contribution_1.RemoteFrontendContribution).toSelf().inSingletonScope();
32
+ bind(browser_1.FrontendApplicationContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
33
+ bind(core_1.CommandContribution).toService(remote_frontend_contribution_1.RemoteFrontendContribution);
34
+ (0, core_1.bindContributionProvider)(bind, remote_registry_contribution_1.RemoteRegistryContribution);
35
+ bind(remote_ssh_contribution_1.RemoteSSHContribution).toSelf().inSingletonScope();
36
+ bind(remote_registry_contribution_1.RemoteRegistryContribution).toService(remote_ssh_contribution_1.RemoteSSHContribution);
37
+ (0, remote_preferences_1.bindRemotePreferences)(bind);
38
+ rebind(electron_file_dialog_service_1.ElectronFileDialogService).to(remote_electron_file_dialog_service_1.RemoteElectronFileDialogService).inSingletonScope();
39
+ bind(remote_service_1.RemoteService).toSelf().inSingletonScope();
40
+ bind(remote_ssh_connection_provider_1.RemoteSSHConnectionProvider).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createLocalProxy(ctx.container, remote_ssh_connection_provider_1.RemoteSSHConnectionProviderPath)).inSingletonScope();
41
+ bind(remote_status_service_1.RemoteStatusService).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createLocalProxy(ctx.container, remote_status_service_1.RemoteStatusServicePath)).inSingletonScope();
42
+ });
43
43
  //# sourceMappingURL=remote-frontend-module.js.map
@@ -1,11 +1,11 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { PreferenceProxy, PreferenceSchema } from '@theia/core/lib/browser/preferences';
3
- export declare const RemotePreferenceSchema: PreferenceSchema;
4
- export interface RemoteConfiguration {
5
- 'remote.nodeDownloadTemplate': string;
6
- }
7
- export declare const RemotePreferenceContribution: unique symbol;
8
- export declare const RemotePreferences: unique symbol;
9
- export declare type RemotePreferences = PreferenceProxy<RemoteConfiguration>;
10
- export declare function bindRemotePreferences(bind: interfaces.Bind): void;
1
+ import { interfaces } from '@theia/core/shared/inversify';
2
+ import { PreferenceProxy, PreferenceSchema } from '@theia/core/lib/browser/preferences';
3
+ export declare const RemotePreferenceSchema: PreferenceSchema;
4
+ export interface RemoteConfiguration {
5
+ 'remote.nodeDownloadTemplate': string;
6
+ }
7
+ export declare const RemotePreferenceContribution: unique symbol;
8
+ export declare const RemotePreferences: unique symbol;
9
+ export declare type RemotePreferences = PreferenceProxy<RemoteConfiguration>;
10
+ export declare function bindRemotePreferences(bind: interfaces.Bind): void;
11
11
  //# sourceMappingURL=remote-preferences.d.ts.map
@@ -1,49 +1,49 @@
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
- exports.bindRemotePreferences = exports.RemotePreferences = exports.RemotePreferenceContribution = exports.RemotePreferenceSchema = void 0;
19
- const preferences_1 = require("@theia/core/lib/browser/preferences");
20
- const nls_1 = require("@theia/core/lib/common/nls");
21
- const injectable_preference_proxy_1 = require("@theia/core/lib/browser/preferences/injectable-preference-proxy");
22
- const nodeDownloadTemplateParts = [
23
- nls_1.nls.localize('theia/remote/nodeDownloadTemplateVersion', '`{version}` for the used node version'),
24
- nls_1.nls.localize('theia/remote/nodeDownloadTemplateOS', '`{os}` for the remote operating system. Either `win`, `linux` or `darwin`.'),
25
- nls_1.nls.localize('theia/remote/nodeDownloadTemplateArch', '`{arch}` for the remote system architecture.'),
26
- nls_1.nls.localize('theia/remote/nodeDownloadTemplateExt', '`{ext}` for the file extension. Either `zip`, `tar.xz` or `tar.xz`, depending on the operating system.')
27
- ];
28
- exports.RemotePreferenceSchema = {
29
- 'type': 'object',
30
- properties: {
31
- 'remote.nodeDownloadTemplate': {
32
- type: 'string',
33
- default: '',
34
- markdownDescription: nls_1.nls.localize('theia/remote/nodeDownloadTemplate', 'Controls the template used to download the node.js binaries for the remote backend. Points to the official node.js website by default. Uses multiple placeholders:') + '\n- ' + nodeDownloadTemplateParts.join('\n- ')
35
- },
36
- }
37
- };
38
- exports.RemotePreferenceContribution = Symbol('RemotePreferenceContribution');
39
- exports.RemotePreferences = Symbol('GettingStartedPreferences');
40
- function bindRemotePreferences(bind) {
41
- bind(exports.RemotePreferences).toDynamicValue(ctx => {
42
- const factory = ctx.container.get(injectable_preference_proxy_1.PreferenceProxyFactory);
43
- return factory(exports.RemotePreferenceSchema);
44
- }).inSingletonScope();
45
- bind(exports.RemotePreferenceContribution).toConstantValue({ schema: exports.RemotePreferenceSchema });
46
- bind(preferences_1.PreferenceContribution).toService(exports.RemotePreferenceContribution);
47
- }
48
- exports.bindRemotePreferences = bindRemotePreferences;
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
+ exports.bindRemotePreferences = exports.RemotePreferences = exports.RemotePreferenceContribution = exports.RemotePreferenceSchema = void 0;
19
+ const preferences_1 = require("@theia/core/lib/browser/preferences");
20
+ const nls_1 = require("@theia/core/lib/common/nls");
21
+ const injectable_preference_proxy_1 = require("@theia/core/lib/browser/preferences/injectable-preference-proxy");
22
+ const nodeDownloadTemplateParts = [
23
+ nls_1.nls.localize('theia/remote/nodeDownloadTemplateVersion', '`{version}` for the used node version'),
24
+ nls_1.nls.localize('theia/remote/nodeDownloadTemplateOS', '`{os}` for the remote operating system. Either `win`, `linux` or `darwin`.'),
25
+ nls_1.nls.localize('theia/remote/nodeDownloadTemplateArch', '`{arch}` for the remote system architecture.'),
26
+ nls_1.nls.localize('theia/remote/nodeDownloadTemplateExt', '`{ext}` for the file extension. Either `zip`, `tar.xz` or `tar.xz`, depending on the operating system.')
27
+ ];
28
+ exports.RemotePreferenceSchema = {
29
+ 'type': 'object',
30
+ properties: {
31
+ 'remote.nodeDownloadTemplate': {
32
+ type: 'string',
33
+ default: '',
34
+ markdownDescription: nls_1.nls.localize('theia/remote/nodeDownloadTemplate', 'Controls the template used to download the node.js binaries for the remote backend. Points to the official node.js website by default. Uses multiple placeholders:') + '\n- ' + nodeDownloadTemplateParts.join('\n- ')
35
+ },
36
+ }
37
+ };
38
+ exports.RemotePreferenceContribution = Symbol('RemotePreferenceContribution');
39
+ exports.RemotePreferences = Symbol('GettingStartedPreferences');
40
+ function bindRemotePreferences(bind) {
41
+ bind(exports.RemotePreferences).toDynamicValue(ctx => {
42
+ const factory = ctx.container.get(injectable_preference_proxy_1.PreferenceProxyFactory);
43
+ return factory(exports.RemotePreferenceSchema);
44
+ }).inSingletonScope();
45
+ bind(exports.RemotePreferenceContribution).toConstantValue({ schema: exports.RemotePreferenceSchema });
46
+ bind(preferences_1.PreferenceContribution).toService(exports.RemotePreferenceContribution);
47
+ }
48
+ exports.bindRemotePreferences = bindRemotePreferences;
49
49
  //# sourceMappingURL=remote-preferences.js.map
@@ -1,19 +1,19 @@
1
- import { Command, CommandHandler, Emitter, Event } from '@theia/core';
2
- import { WindowService } from '@theia/core/lib/browser/window/window-service';
3
- export declare const RemoteRegistryContribution: unique symbol;
4
- export interface RemoteRegistryContribution {
5
- registerRemoteCommands(registry: RemoteRegistry): void;
6
- }
7
- export declare abstract class AbstractRemoteRegistryContribution implements RemoteRegistryContribution {
8
- protected readonly windowService: WindowService;
9
- abstract registerRemoteCommands(registry: RemoteRegistry): void;
10
- protected openRemote(port: string, newWindow: boolean): void;
11
- }
12
- export declare class RemoteRegistry {
13
- protected _commands: Command[];
14
- protected onDidRegisterCommandEmitter: Emitter<[Command, CommandHandler | undefined]>;
15
- get commands(): readonly Command[];
16
- get onDidRegisterCommand(): Event<[Command, CommandHandler | undefined]>;
17
- registerCommand(command: Command, handler?: CommandHandler): void;
18
- }
1
+ import { Command, CommandHandler, Emitter, Event } from '@theia/core';
2
+ import { WindowService } from '@theia/core/lib/browser/window/window-service';
3
+ export declare const RemoteRegistryContribution: unique symbol;
4
+ export interface RemoteRegistryContribution {
5
+ registerRemoteCommands(registry: RemoteRegistry): void;
6
+ }
7
+ export declare abstract class AbstractRemoteRegistryContribution implements RemoteRegistryContribution {
8
+ protected readonly windowService: WindowService;
9
+ abstract registerRemoteCommands(registry: RemoteRegistry): void;
10
+ protected openRemote(port: string, newWindow: boolean): void;
11
+ }
12
+ export declare class RemoteRegistry {
13
+ protected _commands: Command[];
14
+ protected onDidRegisterCommandEmitter: Emitter<[Command, CommandHandler | undefined]>;
15
+ get commands(): readonly Command[];
16
+ get onDidRegisterCommand(): Event<[Command, CommandHandler | undefined]>;
17
+ registerCommand(command: Command, handler?: CommandHandler): void;
18
+ }
19
19
  //# sourceMappingURL=remote-registry-contribution.d.ts.map