@codingame/monaco-vscode-remote-agent-service-override 4.4.1 → 4.5.0-improve-code-splitting.1
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 +11 -3
- package/remoteAgent.js +19 -16
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +2 -2
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.js +3 -0
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.js +30 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +7 -5
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +26 -25
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +10 -10
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +23 -19
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +7 -6
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +2 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +7 -6
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +9 -10
- package/vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js +2 -1
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +14 -13
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +7 -7
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.js +59 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js +8 -7
- package/vscode/src/vs/workbench/services/tunnel/browser/tunnelService.js +4 -3
- package/override/vs/platform/dialogs/common/dialogs.js +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-improve-code-splitting.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -17,8 +17,16 @@
|
|
|
17
17
|
"main": "index.js",
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"default": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"./vscode/*": {
|
|
25
|
+
"default": "./vscode/src/*.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
20
28
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@4.
|
|
22
|
-
"@codingame/monaco-vscode-environment-service-override": "4.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.0-improve-code-splitting.1",
|
|
30
|
+
"@codingame/monaco-vscode-environment-service-override": "4.5.0-improve-code-splitting.1"
|
|
23
31
|
}
|
|
24
32
|
}
|
package/remoteAgent.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
3
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
4
4
|
import { RemoteAgentService } from './vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js';
|
|
5
|
-
import { RemoteSocketFactoryService
|
|
6
|
-
import {
|
|
5
|
+
import { RemoteSocketFactoryService } from './vscode/src/vs/platform/remote/common/remoteSocketFactoryService.js';
|
|
6
|
+
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService.service';
|
|
7
|
+
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
7
8
|
import { RemoteAuthorityResolverService } from './vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js';
|
|
8
9
|
import { BrowserSocketFactory } from './vscode/src/vs/platform/remote/browser/browserSocketFactory.js';
|
|
9
10
|
import { RemoteFileSystemProviderClient } from './vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js';
|
|
10
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
11
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
12
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
12
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
13
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
14
|
+
import { RemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
15
|
+
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
16
|
+
import { ExternalUriOpenerService } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService';
|
|
17
|
+
import { IExternalUriOpenerService } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service';
|
|
15
18
|
import { RemoteExtensionsScannerService } from './vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js';
|
|
16
|
-
import { IRemoteExtensionsScannerService } from 'vscode/vscode/vs/platform/remote/common/remoteExtensionsScanner';
|
|
17
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
18
|
-
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment';
|
|
19
|
+
import { IRemoteExtensionsScannerService } from 'vscode/vscode/vs/platform/remote/common/remoteExtensionsScanner.service';
|
|
20
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
21
|
+
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
19
22
|
import { BrowserRemoteResourceLoader } from './vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js';
|
|
20
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
21
|
-
import { IRemoteUserDataProfilesService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles';
|
|
22
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
23
|
-
import { IActiveLanguagePackService } from 'vscode/vscode/vs/workbench/services/localization/common/locale';
|
|
24
|
-
import { ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
23
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
24
|
+
import { IRemoteUserDataProfilesService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service';
|
|
25
|
+
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
26
|
+
import { IActiveLanguagePackService } from 'vscode/vscode/vs/workbench/services/localization/common/locale.service';
|
|
27
|
+
import { ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel.service';
|
|
25
28
|
import { TunnelService } from './vscode/src/vs/workbench/services/tunnel/browser/tunnelService.js';
|
|
26
29
|
import getServiceOverride$1 from '@codingame/monaco-vscode-environment-service-override';
|
|
27
30
|
import { getWorkbenchConstructionOptions } from 'vscode/workbench';
|
|
@@ -7,8 +7,8 @@ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
7
7
|
import { RemoteAuthorities } from 'vscode/vscode/vs/base/common/network';
|
|
8
8
|
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
9
9
|
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
10
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
11
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
12
12
|
import { getRemoteAuthorityPrefix, WebSocketRemoteConnection } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
13
13
|
import { parseAuthorityWithOptionalPort } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
14
14
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
+
|
|
3
|
+
class RemoteSocketFactoryService {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.factories = {};
|
|
6
|
+
}
|
|
7
|
+
register(type, factory) {
|
|
8
|
+
this.factories[type] ??= [];
|
|
9
|
+
this.factories[type].push(factory);
|
|
10
|
+
return toDisposable(() => {
|
|
11
|
+
const idx = this.factories[type]?.indexOf(factory);
|
|
12
|
+
if (typeof idx === 'number' && idx >= 0) {
|
|
13
|
+
this.factories[type]?.splice(idx, 1);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
getSocketFactory(messagePassing) {
|
|
18
|
+
const factories = (this.factories[messagePassing.type] || []);
|
|
19
|
+
return factories.find(factory => factory.supports(messagePassing));
|
|
20
|
+
}
|
|
21
|
+
connect(connectTo, path, query, debugLabel) {
|
|
22
|
+
const socketFactory = this.getSocketFactory(connectTo);
|
|
23
|
+
if (!socketFactory) {
|
|
24
|
+
throw new Error(`No socket factory found for ${connectTo}`);
|
|
25
|
+
}
|
|
26
|
+
return socketFactory.connect(connectTo, path, query, debugLabel);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { RemoteSocketFactoryService };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import {
|
|
3
|
+
import { REMOTE_EXPLORER_TYPE_KEY } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
4
|
+
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
4
5
|
import { isStringArray } from 'vscode/vscode/vs/base/common/types';
|
|
5
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
6
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
7
|
-
import { RawContextKey,
|
|
6
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
7
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
8
|
+
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
8
10
|
import { MenuId, MenuRegistry, registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
11
|
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
10
12
|
import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
11
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
13
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
12
14
|
import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
13
15
|
|
|
14
16
|
const SELECTED_REMOTE_IN_EXPLORER = ( new RawContextKey('selectedRemoteInExplorer', ''));
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/remoteViewlet.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { append, $, disposableWindowInterval } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
-
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
7
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
8
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
9
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
10
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
6
|
+
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
7
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
8
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
9
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
10
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
11
11
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
12
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
13
13
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
14
|
-
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
15
|
-
import {
|
|
14
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
15
|
+
import { isProposedApiEnabled } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
16
|
+
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
16
17
|
import { FilterViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewsViewlet';
|
|
17
18
|
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
18
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
19
|
-
import {
|
|
19
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
20
|
+
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
21
|
+
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
20
22
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
21
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
22
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
23
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
24
|
-
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
25
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
26
|
-
import '
|
|
23
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
24
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
25
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
26
|
+
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
27
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
28
|
+
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
27
29
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
28
30
|
import { ReloadWindowAction } from 'vscode/vscode/vs/workbench/browser/actions/windowActions';
|
|
29
31
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
30
32
|
import { SwitchRemoteViewItem } from './explorerViewItems.js';
|
|
31
33
|
import { isStringArray } from 'vscode/vscode/vs/base/common/types';
|
|
32
|
-
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
33
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
34
|
+
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
35
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
34
36
|
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
35
37
|
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
36
|
-
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
38
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
37
39
|
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
38
40
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
39
|
-
import {
|
|
40
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
41
|
-
import { ITimerService } from 'vscode/vscode/vs/workbench/services/timer/browser/timerService';
|
|
41
|
+
import { getStartedIcon, documentationIcon, reviewIssuesIcon, reportIssuesIcon, remoteExplorerViewIcon } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteIcons';
|
|
42
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
43
|
+
import { ITimerService } from 'vscode/vscode/vs/workbench/services/timer/browser/timerService.service';
|
|
42
44
|
import { getRemoteName } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
43
45
|
import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
44
|
-
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService';
|
|
46
|
+
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service';
|
|
45
47
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
46
48
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
47
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
48
49
|
|
|
49
50
|
class HelpTreeVirtualDelegate {
|
|
50
51
|
getHeight(element) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { remoteConnectionLatencyMeasurer } from '../../../services/remote/common/remoteAgentService.js';
|
|
3
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
4
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
4
5
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
6
|
import { isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
6
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
7
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
7
8
|
import { getRemoteName } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
8
|
-
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService';
|
|
9
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
10
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
11
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
12
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
13
|
-
import '
|
|
9
|
+
import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/browser/bannerService.service';
|
|
10
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
11
|
+
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
12
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
14
|
+
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
14
15
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
15
16
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
16
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
17
17
|
|
|
18
18
|
const REMOTE_UNSUPPORTED_CONNECTION_CHOICE_KEY = 'remote.unsupportedConnectionChoice';
|
|
19
19
|
const BANNER_REMOTE_UNSUPPORTED_CONNECTION_DISMISSED_KEY = 'workbench.banner.remote.unsupportedConnection.dismissed';
|
|
@@ -1,47 +1,51 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { remoteConnectionLatencyMeasurer
|
|
3
|
+
import { remoteConnectionLatencyMeasurer } from '../../../services/remote/common/remoteAgentService.js';
|
|
4
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
4
5
|
import { RunOnceScheduler, retry } from 'vscode/vscode/vs/base/common/async';
|
|
5
6
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
6
7
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
-
import { MenuId, registerAction2, Action2, MenuRegistry,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { MenuId, registerAction2, Action2, MenuRegistry, MenuItemAction } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
|
+
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
10
|
+
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
11
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
12
|
+
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
12
15
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
13
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
14
|
-
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
15
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
16
|
-
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
17
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
16
|
+
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
17
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
18
|
+
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
19
|
+
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
20
|
+
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
18
21
|
import { isWeb, PlatformToString, platform } from 'vscode/vscode/vs/base/common/platform';
|
|
19
22
|
import { truncate } from 'vscode/vscode/vs/base/common/strings';
|
|
20
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
23
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
21
24
|
import { getRemoteName } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
22
25
|
import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
23
26
|
import { getCodiconAriaLabel } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
24
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
27
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
25
28
|
import { ReloadWindowAction } from 'vscode/vscode/vs/workbench/browser/actions/windowActions';
|
|
26
|
-
import { EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT
|
|
29
|
+
import { EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
30
|
+
import { IExtensionGalleryService, IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
27
31
|
import { VIEWLET_ID, LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
28
32
|
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
29
33
|
import { RemoteNameContext, VirtualWorkspaceContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
30
|
-
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
31
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
32
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
34
|
+
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
35
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
36
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
33
37
|
import { DomEmitter } from 'vscode/vscode/vs/base/browser/event';
|
|
34
38
|
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
35
39
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
36
40
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
37
41
|
import { infoIcon } from 'vscode/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
|
|
38
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
42
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
39
43
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
40
44
|
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
41
45
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
42
46
|
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
43
47
|
import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
44
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
48
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
45
49
|
|
|
46
50
|
var RemoteStatusIndicator_1;
|
|
47
51
|
let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
5
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
4
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
5
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
6
6
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
|
-
import { IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
8
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
7
|
+
import { IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
8
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
9
9
|
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
10
|
-
import { IWorkbenchExtensionEnablementService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
11
|
-
import { RawContextKey
|
|
10
|
+
import { IWorkbenchExtensionEnablementService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
11
|
+
import { RawContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
12
13
|
|
|
13
14
|
var RemoteStartEntry_1;
|
|
14
15
|
const showStartEntryInWeb = ( new RawContextKey('showRemoteStartEntryInWeb', false));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
4
|
-
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
3
|
+
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
4
|
+
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
5
5
|
|
|
6
6
|
let ShowCandidateContribution = class ShowCandidateContribution extends Disposable {
|
|
7
7
|
static { this.ID = 'workbench.contrib.showPortCandidate'; }
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { TunnelPrivacyId, TunnelProtocol
|
|
3
|
+
import { TunnelPrivacyId, TunnelProtocol } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
4
|
+
import { ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel.service';
|
|
4
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
6
|
-
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
6
|
+
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
7
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
7
8
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
|
-
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
9
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
11
12
|
import { forwardedPortsViewEnabled } from 'vscode/vscode/vs/workbench/services/remote/common/tunnelModel';
|
|
12
13
|
|
|
13
14
|
let TunnelFactoryContribution = class TunnelFactoryContribution extends Disposable {
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
3
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
|
-
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
4
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
5
5
|
import { OS, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
6
6
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
7
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
8
|
-
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
7
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
8
|
+
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
9
9
|
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
10
10
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
11
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
12
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
13
|
-
import '
|
|
14
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
15
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
12
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
13
|
+
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
14
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
15
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
16
16
|
import { firstOrDefault } from 'vscode/vscode/vs/base/common/arrays';
|
|
17
|
-
import {
|
|
17
|
+
import { Action2, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
18
18
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
19
19
|
import { PersistentConnection } from 'vscode/vscode/vs/platform/remote/common/remoteAgentConnection';
|
|
20
|
-
import { IDownloadService } from 'vscode/vscode/vs/platform/download/common/download';
|
|
20
|
+
import { IDownloadService } from 'vscode/vscode/vs/platform/download/common/download.service';
|
|
21
21
|
import { DownloadServiceChannel } from '../../../../platform/download/common/downloadIpc.js';
|
|
22
22
|
import { RemoteLoggerChannelClient } from '../../../../platform/log/common/logIpc.js';
|
|
23
|
-
import { IDialogService, IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
24
23
|
|
|
25
24
|
let LabelContribution = class LabelContribution {
|
|
26
25
|
static { this.ID = 'workbench.contrib.remoteLabel'; }
|
|
@@ -3,7 +3,8 @@ import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
|
3
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { getMediaOrTextMime } from 'vscode/vscode/vs/base/common/mime';
|
|
5
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
-
import {
|
|
6
|
+
import { FileOperationError } from 'vscode/vscode/vs/platform/files/common/files';
|
|
7
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
7
8
|
|
|
8
9
|
let BrowserRemoteResourceLoader = class BrowserRemoteResourceLoader extends Disposable {
|
|
9
10
|
constructor(fileService, provider) {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
4
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
5
|
-
import {
|
|
3
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
4
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
5
|
+
import { RemoteAuthorityResolverError } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
6
|
+
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
6
7
|
import { AbstractRemoteAgentService } from '../common/abstractRemoteAgentService.js';
|
|
7
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
8
|
-
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign';
|
|
9
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
-
import
|
|
11
|
-
import '
|
|
8
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
9
|
+
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign.service';
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
|
+
import 'vscode/vscode/vs/platform/notification/common/notification';
|
|
12
|
+
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
12
13
|
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
13
|
-
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
14
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
15
|
-
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
16
|
-
import
|
|
14
|
+
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
|
|
15
|
+
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
16
|
+
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService.service';
|
|
17
|
+
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
17
18
|
|
|
18
19
|
let RemoteAgentService = class RemoteAgentService extends AbstractRemoteAgentService {
|
|
19
20
|
constructor(remoteSocketFactoryService, userDataProfileService, environmentService, productService, remoteAuthorityResolverService, signService, logService) {
|
|
@@ -43,7 +44,7 @@ let RemoteConnectionFailureNotificationContribution = class RemoteConnectionFail
|
|
|
43
44
|
}
|
|
44
45
|
async _presentConnectionError(err) {
|
|
45
46
|
await this._dialogService.prompt({
|
|
46
|
-
type: Severity.Error,
|
|
47
|
+
type: Severity$1.Error,
|
|
47
48
|
message: ( localizeWithPath(
|
|
48
49
|
'vs/workbench/services/remote/browser/remoteAgentService',
|
|
49
50
|
'connectionError',
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import { getDelayedChannel } from 'vscode/vscode/vs/base/parts/ipc/common/ipc';
|
|
4
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
4
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
5
5
|
import { connectRemoteAgentManagement } from 'vscode/vscode/vs/platform/remote/common/remoteAgentConnection';
|
|
6
|
-
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
6
|
+
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
7
7
|
import { RemoteExtensionEnvironmentChannelClient } from './remoteAgentEnvironmentChannel.js';
|
|
8
8
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
9
|
-
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign';
|
|
10
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
11
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
12
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
13
|
-
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
9
|
+
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign.service';
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
12
|
+
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
13
|
+
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService.service';
|
|
14
14
|
|
|
15
15
|
let AbstractRemoteAgentService = class AbstractRemoteAgentService extends Disposable {
|
|
16
16
|
constructor(remoteSocketFactoryService, userDataProfileService, _environmentService, productService, _remoteAuthorityResolverService, signService, logService) {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { timeout } from 'vscode/vscode/vs/base/common/async';
|
|
2
|
+
|
|
3
|
+
const remoteConnectionLatencyMeasurer = new class {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.maxSampleCount = 5;
|
|
6
|
+
this.sampleDelay = 2000;
|
|
7
|
+
this.initial = [];
|
|
8
|
+
this.maxInitialCount = 3;
|
|
9
|
+
this.average = [];
|
|
10
|
+
this.maxAverageCount = 100;
|
|
11
|
+
this.highLatencyMultiple = 2;
|
|
12
|
+
this.highLatencyMinThreshold = 500;
|
|
13
|
+
this.highLatencyMaxThreshold = 1500;
|
|
14
|
+
this.lastMeasurement = undefined;
|
|
15
|
+
}
|
|
16
|
+
get latency() { return this.lastMeasurement; }
|
|
17
|
+
async measure(remoteAgentService) {
|
|
18
|
+
let currentLatency = Infinity;
|
|
19
|
+
for (let i = 0; i < this.maxSampleCount; i++) {
|
|
20
|
+
const rtt = await remoteAgentService.getRoundTripTime();
|
|
21
|
+
if (rtt === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
currentLatency = Math.min(currentLatency, rtt / 2 );
|
|
25
|
+
await timeout(this.sampleDelay);
|
|
26
|
+
}
|
|
27
|
+
this.average.push(currentLatency);
|
|
28
|
+
if (this.average.length > this.maxAverageCount) {
|
|
29
|
+
this.average.shift();
|
|
30
|
+
}
|
|
31
|
+
let initialLatency = undefined;
|
|
32
|
+
if (this.initial.length < this.maxInitialCount) {
|
|
33
|
+
this.initial.push(currentLatency);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
initialLatency = this.initial.reduce((sum, value) => sum + value, 0) / this.initial.length;
|
|
37
|
+
}
|
|
38
|
+
this.lastMeasurement = {
|
|
39
|
+
initial: initialLatency,
|
|
40
|
+
current: currentLatency,
|
|
41
|
+
average: this.average.reduce((sum, value) => sum + value, 0) / this.average.length,
|
|
42
|
+
high: (() => {
|
|
43
|
+
if (typeof initialLatency === 'undefined') {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
if (currentLatency > this.highLatencyMaxThreshold) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
if (currentLatency > this.highLatencyMinThreshold && currentLatency > initialLatency * this.highLatencyMultiple) {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
})()
|
|
54
|
+
};
|
|
55
|
+
return this.lastMeasurement;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { remoteConnectionLatencyMeasurer };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
3
|
-
import { RemoteExtensionsScannerChannelName } from '
|
|
2
|
+
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
3
|
+
import { RemoteExtensionsScannerChannelName } from '../../../../platform/remote/common/remoteExtensionsScanner.js';
|
|
4
|
+
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
5
|
import { language } from 'vscode/vscode/vs/base/common/platform';
|
|
5
6
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
7
|
-
import { IRemoteUserDataProfilesService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles';
|
|
8
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
9
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
-
import { IActiveLanguagePackService } from 'vscode/vscode/vs/workbench/services/localization/common/locale';
|
|
7
|
+
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
8
|
+
import { IRemoteUserDataProfilesService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service';
|
|
9
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
11
|
+
import { IActiveLanguagePackService } from 'vscode/vscode/vs/workbench/services/localization/common/locale.service';
|
|
11
12
|
|
|
12
13
|
let RemoteExtensionsScannerService = class RemoteExtensionsScannerService {
|
|
13
14
|
constructor(remoteAgentService, environmentService, userDataProfileService, remoteUserDataProfilesService, logService, activeLanguagePackService) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
3
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
2
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
3
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
4
4
|
import { AbstractTunnelService, isTunnelProvider } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
5
|
-
import
|
|
5
|
+
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
6
7
|
|
|
7
8
|
let TunnelService = class TunnelService extends AbstractTunnelService {
|
|
8
9
|
constructor(logService, environmentService, configurationService) {
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { AbstractDialogHandler, IDialogService, IFileDialogService, getFileNamesMessage } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
2
|
-
|
|
3
|
-
var ConfirmResult;
|
|
4
|
-
( (function(ConfirmResult) {
|
|
5
|
-
ConfirmResult[ConfirmResult["SAVE"] = 0] = "SAVE";
|
|
6
|
-
ConfirmResult[ConfirmResult["DONT_SAVE"] = 1] = "DONT_SAVE";
|
|
7
|
-
ConfirmResult[ConfirmResult["CANCEL"] = 2] = "CANCEL";
|
|
8
|
-
})(ConfirmResult || (ConfirmResult = {})));
|
|
9
|
-
|
|
10
|
-
export { ConfirmResult };
|