@codingame/monaco-vscode-remote-agent-service-override 2.2.1 → 3.0.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/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +2 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +10 -9
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +1 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +1 -0
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +5 -3
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.0.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
23
|
+
"@codingame/monaco-vscode-environment-service-override": "3.0.0"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
1
|
+
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
2
2
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
3
|
import { ShowCandidateContribution } from './showCandidate.js';
|
|
4
4
|
import { TunnelFactoryContribution } from './tunnelFactory.js';
|
|
@@ -8,10 +8,10 @@ import { ForwardedPortsView, PortRestore, AutomaticPortForwarding } from 'vscode
|
|
|
8
8
|
import { InitialRemoteConnectionHealthContribution } from './remoteConnectionHealth.js';
|
|
9
9
|
|
|
10
10
|
const workbenchContributionsRegistry = ( Registry.as(Extensions.Workbench));
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
registerWorkbenchContribution2(ShowCandidateContribution.ID, ShowCandidateContribution, 2 );
|
|
12
|
+
registerWorkbenchContribution2(TunnelFactoryContribution.ID, TunnelFactoryContribution, 2 );
|
|
13
13
|
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteAgentConnectionStatusListener, 4 );
|
|
14
|
-
|
|
14
|
+
registerWorkbenchContribution2(RemoteStatusIndicator.ID, RemoteStatusIndicator, 1 );
|
|
15
15
|
workbenchContributionsRegistry.registerWorkbenchContribution(ForwardedPortsView, 3 );
|
|
16
16
|
workbenchContributionsRegistry.registerWorkbenchContribution(PortRestore, 4 );
|
|
17
17
|
workbenchContributionsRegistry.registerWorkbenchContribution(AutomaticPortForwarding, 4 );
|
|
@@ -509,11 +509,11 @@ RemoteViewPaneContainer = ( __decorate([
|
|
|
509
509
|
], RemoteViewPaneContainer));
|
|
510
510
|
( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
511
511
|
id: VIEWLET_ID,
|
|
512
|
-
title:
|
|
512
|
+
title: ( localize2WithPath(
|
|
513
513
|
'vs/workbench/contrib/remote/browser/remote',
|
|
514
514
|
'remote.explorer',
|
|
515
515
|
"Remote Explorer"
|
|
516
|
-
)),
|
|
516
|
+
)),
|
|
517
517
|
ctorDescriptor: ( new SyncDescriptor(RemoteViewPaneContainer)),
|
|
518
518
|
hideIfEmpty: true,
|
|
519
519
|
viewOrderDelegate: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { remoteConnectionLatencyMeasurer, IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
4
4
|
import { RunOnceScheduler, retry } from 'vscode/vscode/vs/base/common/async';
|
|
5
5
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
@@ -42,6 +42,7 @@ import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
|
42
42
|
var RemoteStatusIndicator_1;
|
|
43
43
|
let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
44
44
|
static { RemoteStatusIndicator_1 = this; }
|
|
45
|
+
static { this.ID = 'workbench.contrib.remoteStatusIndicator'; }
|
|
45
46
|
static { this.REMOTE_ACTIONS_COMMAND_ID = 'workbench.action.remote.showMenu'; }
|
|
46
47
|
static { this.CLOSE_REMOTE_COMMAND_ID = 'workbench.action.remote.close'; }
|
|
47
48
|
static { this.SHOW_CLOSE_REMOTE_COMMAND_ID = !isWeb; }
|
|
@@ -111,22 +112,22 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
111
112
|
this.updateRemoteStatusIndicator();
|
|
112
113
|
}
|
|
113
114
|
registerActions() {
|
|
114
|
-
const category =
|
|
115
|
+
const category = ( localize2WithPath(
|
|
115
116
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
116
117
|
'remote.category',
|
|
117
118
|
"Remote"
|
|
118
|
-
))
|
|
119
|
+
));
|
|
119
120
|
const that = this;
|
|
120
121
|
registerAction2(class extends Action2 {
|
|
121
122
|
constructor() {
|
|
122
123
|
super({
|
|
123
124
|
id: RemoteStatusIndicator_1.REMOTE_ACTIONS_COMMAND_ID,
|
|
124
125
|
category,
|
|
125
|
-
title:
|
|
126
|
+
title: ( localize2WithPath(
|
|
126
127
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
127
128
|
'remote.showMenu',
|
|
128
129
|
"Show Remote Menu"
|
|
129
|
-
)),
|
|
130
|
+
)),
|
|
130
131
|
f1: true,
|
|
131
132
|
keybinding: {
|
|
132
133
|
weight: 200 ,
|
|
@@ -142,11 +143,11 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
142
143
|
super({
|
|
143
144
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
144
145
|
category,
|
|
145
|
-
title:
|
|
146
|
+
title: ( localize2WithPath(
|
|
146
147
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
147
148
|
'remote.close',
|
|
148
149
|
"Close Remote Connection"
|
|
149
|
-
)),
|
|
150
|
+
)),
|
|
150
151
|
f1: true,
|
|
151
152
|
precondition: ( ContextKeyExpr.or(RemoteNameContext, VirtualWorkspaceContext))
|
|
152
153
|
});
|
|
@@ -174,11 +175,11 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
174
175
|
super({
|
|
175
176
|
id: RemoteStatusIndicator_1.INSTALL_REMOTE_EXTENSIONS_ID,
|
|
176
177
|
category,
|
|
177
|
-
title:
|
|
178
|
+
title: ( localize2WithPath(
|
|
178
179
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
179
180
|
'remote.install',
|
|
180
181
|
"Install Remote Development Extensions"
|
|
181
|
-
)),
|
|
182
|
+
)),
|
|
182
183
|
f1: true
|
|
183
184
|
});
|
|
184
185
|
this.run = (accessor, input) => {
|
|
@@ -4,6 +4,7 @@ import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/
|
|
|
4
4
|
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
5
5
|
|
|
6
6
|
let ShowCandidateContribution = class ShowCandidateContribution extends Disposable {
|
|
7
|
+
static { this.ID = 'workbench.contrib.showPortCandidate'; }
|
|
7
8
|
constructor(remoteExplorerService, environmentService) {
|
|
8
9
|
super();
|
|
9
10
|
const showPortCandidate = environmentService.options?.tunnelProvider?.showPortCandidate;
|
|
@@ -11,6 +11,7 @@ import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/
|
|
|
11
11
|
import { forwardedPortsViewEnabled } from 'vscode/vscode/vs/workbench/services/remote/common/tunnelModel';
|
|
12
12
|
|
|
13
13
|
let TunnelFactoryContribution = class TunnelFactoryContribution extends Disposable {
|
|
14
|
+
static { this.ID = 'workbench.contrib.tunnelFactory'; }
|
|
14
15
|
constructor(tunnelService, environmentService, openerService, remoteExplorerService, logService, contextKeyService) {
|
|
15
16
|
super();
|
|
16
17
|
this.openerService = openerService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
2
|
+
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
3
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
4
|
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
5
5
|
import { OS, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
@@ -23,6 +23,7 @@ import { RemoteLoggerChannelClient } from '../../../../platform/log/common/logIp
|
|
|
23
23
|
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
24
24
|
|
|
25
25
|
let LabelContribution = class LabelContribution {
|
|
26
|
+
static { this.ID = 'workbench.contrib.remoteLabel'; }
|
|
26
27
|
constructor(labelService, remoteAgentService) {
|
|
27
28
|
this.labelService = labelService;
|
|
28
29
|
this.remoteAgentService = remoteAgentService;
|
|
@@ -71,6 +72,7 @@ RemoteChannelsContribution = ( __decorate([
|
|
|
71
72
|
( __param(2, ILoggerService))
|
|
72
73
|
], RemoteChannelsContribution));
|
|
73
74
|
let RemoteInvalidWorkspaceDetector = class RemoteInvalidWorkspaceDetector extends Disposable {
|
|
75
|
+
static { this.ID = 'workbench.contrib.remoteInvalidWorkspaceDetector'; }
|
|
74
76
|
constructor(fileService, dialogService, environmentService, contextService, fileDialogService, remoteAgentService) {
|
|
75
77
|
super();
|
|
76
78
|
this.fileService = fileService;
|
|
@@ -131,9 +133,9 @@ RemoteInvalidWorkspaceDetector = ( __decorate([
|
|
|
131
133
|
( __param(5, IRemoteAgentService))
|
|
132
134
|
], RemoteInvalidWorkspaceDetector));
|
|
133
135
|
const workbenchContributionsRegistry = ( Registry.as(Extensions.Workbench));
|
|
134
|
-
|
|
136
|
+
registerWorkbenchContribution2(LabelContribution.ID, LabelContribution, 1 );
|
|
135
137
|
workbenchContributionsRegistry.registerWorkbenchContribution(RemoteChannelsContribution, 3 );
|
|
136
|
-
|
|
138
|
+
registerWorkbenchContribution2(RemoteInvalidWorkspaceDetector.ID, RemoteInvalidWorkspaceDetector, 1 );
|
|
137
139
|
{
|
|
138
140
|
class TriggerReconnectAction extends Action2 {
|
|
139
141
|
constructor() {
|
|
@@ -9,8 +9,7 @@ import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign';
|
|
|
9
9
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
10
|
import { Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
11
11
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
12
|
-
import {
|
|
13
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
12
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
14
13
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
15
14
|
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
16
15
|
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
@@ -31,6 +30,7 @@ RemoteAgentService = ( __decorate([
|
|
|
31
30
|
( __param(6, ILogService))
|
|
32
31
|
], RemoteAgentService));
|
|
33
32
|
let RemoteConnectionFailureNotificationContribution = class RemoteConnectionFailureNotificationContribution {
|
|
33
|
+
static { this.ID = 'workbench.contrib.browserRemoteConnectionFailureNotification'; }
|
|
34
34
|
constructor(remoteAgentService, _dialogService, _hostService) {
|
|
35
35
|
this._dialogService = _dialogService;
|
|
36
36
|
this._hostService = _hostService;
|
|
@@ -73,7 +73,6 @@ RemoteConnectionFailureNotificationContribution = ( __decorate([
|
|
|
73
73
|
( __param(1, IDialogService)),
|
|
74
74
|
( __param(2, IHostService))
|
|
75
75
|
], RemoteConnectionFailureNotificationContribution));
|
|
76
|
-
|
|
77
|
-
workbenchRegistry.registerWorkbenchContribution(RemoteConnectionFailureNotificationContribution, 2 );
|
|
76
|
+
registerWorkbenchContribution2(RemoteConnectionFailureNotificationContribution.ID, RemoteConnectionFailureNotificationContribution, 2 );
|
|
78
77
|
|
|
79
78
|
export { RemoteAgentService };
|