@codingame/monaco-vscode-remote-agent-service-override 4.5.1 → 5.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/platform/download/common/downloadIpc.js +2 -2
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +14 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +121 -174
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +20 -35
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +71 -140
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +12 -19
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +14 -19
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +98 -161
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +20 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
30
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-environment-service-override": "5.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -5,13 +5,13 @@ class DownloadServiceChannel {
|
|
|
5
5
|
this.service = service;
|
|
6
6
|
}
|
|
7
7
|
listen(_, event, arg) {
|
|
8
|
-
throw new Error('Invalid listen');
|
|
8
|
+
throw ( new Error('Invalid listen'));
|
|
9
9
|
}
|
|
10
10
|
call(context, command, args) {
|
|
11
11
|
switch (command) {
|
|
12
12
|
case 'download': return this.service.download(URI.revive(args[0]), URI.revive(args[1]));
|
|
13
13
|
}
|
|
14
|
-
throw new Error('Invalid call');
|
|
14
|
+
throw ( new Error('Invalid call'));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ class RemoteSocketFactoryService {
|
|
|
21
21
|
connect(connectTo, path, query, debugLabel) {
|
|
22
22
|
const socketFactory = this.getSocketFactory(connectTo);
|
|
23
23
|
if (!socketFactory) {
|
|
24
|
-
throw new Error(`No socket factory found for ${connectTo}`);
|
|
24
|
+
throw ( new Error(`No socket factory found for ${connectTo}`));
|
|
25
25
|
}
|
|
26
26
|
return socketFactory.connect(connectTo, path, query, debugLabel);
|
|
27
27
|
}
|
|
@@ -13,7 +13,8 @@ import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace
|
|
|
13
13
|
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
14
14
|
import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const _moduleId = "vs/workbench/contrib/remote/browser/explorerViewItems";
|
|
17
|
+
const SELECTED_REMOTE_IN_EXPLORER = ( (new RawContextKey('selectedRemoteInExplorer', '')));
|
|
17
18
|
let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
18
19
|
constructor(contextKeyService, remoteExplorerService, environmentService, storageService, workspaceContextService) {
|
|
19
20
|
super();
|
|
@@ -22,18 +23,14 @@ let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
|
22
23
|
this.environmentService = environmentService;
|
|
23
24
|
this.storageService = storageService;
|
|
24
25
|
this.workspaceContextService = workspaceContextService;
|
|
25
|
-
this.completedRemotes = this._register(( new DisposableMap()));
|
|
26
|
+
this.completedRemotes = this._register(( (new DisposableMap())));
|
|
26
27
|
this.selectedRemoteContext = SELECTED_REMOTE_IN_EXPLORER.bindTo(contextKeyService);
|
|
27
28
|
this.switchRemoteMenu = MenuId.for('workbench.remote.menu.switchRemoteMenu');
|
|
28
29
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
29
30
|
submenu: this.switchRemoteMenu,
|
|
30
|
-
title: ( localizeWithPath(
|
|
31
|
-
'vs/workbench/contrib/remote/browser/explorerViewItems',
|
|
32
|
-
'switchRemote.label',
|
|
33
|
-
"Switch Remote"
|
|
34
|
-
)),
|
|
31
|
+
title: ( localizeWithPath(_moduleId, 0, "Switch Remote")),
|
|
35
32
|
group: 'navigation',
|
|
36
|
-
when: ( ContextKeyExpr.equals('viewContainer', VIEWLET_ID)),
|
|
33
|
+
when: ( (ContextKeyExpr.equals('viewContainer', VIEWLET_ID))),
|
|
37
34
|
order: 1,
|
|
38
35
|
isSelection: true
|
|
39
36
|
}));
|
|
@@ -99,7 +96,7 @@ let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
|
99
96
|
if (view.group && view.group.startsWith('targets') && view.remoteAuthority && (!view.when || this.contextKeyService.contextMatchesRules(view.when))) {
|
|
100
97
|
const text = view.name;
|
|
101
98
|
const authority = isStringArray(view.remoteAuthority) ? view.remoteAuthority : [view.remoteAuthority];
|
|
102
|
-
if (( this.completedRemotes.has(authority[0]))) {
|
|
99
|
+
if (( (this.completedRemotes.has(authority[0])))) {
|
|
103
100
|
continue;
|
|
104
101
|
}
|
|
105
102
|
const thisCapture = this;
|
|
@@ -108,7 +105,7 @@ let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
|
108
105
|
super({
|
|
109
106
|
id: `workbench.action.remoteExplorer.show.${authority[0]}`,
|
|
110
107
|
title: text,
|
|
111
|
-
toggled: ( SELECTED_REMOTE_IN_EXPLORER.isEqualTo(authority[0])),
|
|
108
|
+
toggled: ( (SELECTED_REMOTE_IN_EXPLORER.isEqualTo(authority[0]))),
|
|
112
109
|
menu: {
|
|
113
110
|
id: thisCapture.switchRemoteMenu
|
|
114
111
|
}
|
|
@@ -126,12 +123,12 @@ let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
125
|
};
|
|
129
|
-
SwitchRemoteViewItem = ( __decorate([
|
|
130
|
-
( __param(0, IContextKeyService)),
|
|
131
|
-
( __param(1, IRemoteExplorerService)),
|
|
132
|
-
( __param(2, IWorkbenchEnvironmentService)),
|
|
133
|
-
( __param(3, IStorageService)),
|
|
134
|
-
( __param(4, IWorkspaceContextService))
|
|
135
|
-
], SwitchRemoteViewItem));
|
|
126
|
+
SwitchRemoteViewItem = ( (__decorate([
|
|
127
|
+
( (__param(0, IContextKeyService))),
|
|
128
|
+
( (__param(1, IRemoteExplorerService))),
|
|
129
|
+
( (__param(2, IWorkbenchEnvironmentService))),
|
|
130
|
+
( (__param(3, IStorageService))),
|
|
131
|
+
( (__param(4, IWorkspaceContextService)))
|
|
132
|
+
], SwitchRemoteViewItem)));
|
|
136
133
|
|
|
137
134
|
export { SELECTED_REMOTE_IN_EXPLORER, SwitchRemoteViewItem };
|