@codingame/monaco-vscode-remote-agent-service-override 1.85.6 → 2.0.0-v2.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 +5 -5
- package/remoteAgent.js +5 -5
- package/vscode/src/vs/platform/download/common/downloadIpc.js +1 -1
- package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +8 -8
- package/vscode/src/vs/platform/log/common/logIpc.js +2 -2
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +9 -9
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +14 -14
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +8 -8
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +49 -49
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +49 -49
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +8 -8
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +15 -15
- package/vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js +5 -5
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +4 -4
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js +5 -5
- package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-v2.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git
|
|
12
|
+
"url": "git@github.com:CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -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@
|
|
22
|
-
"
|
|
23
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.0.0-v2.1",
|
|
22
|
+
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-environment-service-override": "2.0.0-v2.1"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/remoteAgent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from './external/tslib/tslib.es6.js';
|
|
2
|
-
import { SyncDescriptor } from '
|
|
2
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
3
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
4
4
|
import { RemoteAgentService } from './vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js';
|
|
5
5
|
import { IRemoteSocketFactoryService, RemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
@@ -8,14 +8,14 @@ import { RemoteAuthorityResolverService } from './vscode/src/vs/platform/remote/
|
|
|
8
8
|
import { BrowserSocketFactory } from './vscode/src/vs/platform/remote/browser/browserSocketFactory.js';
|
|
9
9
|
import { RemoteFileSystemProviderClient } from './vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js';
|
|
10
10
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
11
|
-
import { IFileService } from '
|
|
12
|
-
import { ILogService } from '
|
|
11
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
12
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
13
13
|
import { IRemoteExplorerService, RemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
14
14
|
import { IExternalUriOpenerService, ExternalUriOpenerService } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService';
|
|
15
15
|
import { RemoteExtensionsScannerService } from './vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js';
|
|
16
16
|
import { IRemoteExtensionsScannerService } from 'vscode/vscode/vs/platform/remote/common/remoteExtensionsScanner';
|
|
17
|
-
import { IProductService } from '
|
|
18
|
-
import { IEnvironmentService } from '
|
|
17
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
18
|
+
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment';
|
|
19
19
|
import { BrowserRemoteResourceLoader } from './vscode/src/vs/workbench/services/remote/browser/browserRemoteResourceHandler.js';
|
|
20
20
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
21
21
|
import { IRemoteUserDataProfilesService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VSBuffer } from '
|
|
2
|
-
import { toErrorMessage } from '
|
|
3
|
-
import { canceled } from '
|
|
4
|
-
import { Event, Emitter } from '
|
|
5
|
-
import { Disposable, DisposableStore, toDisposable } from '
|
|
6
|
-
import { newWriteableStream } from '
|
|
7
|
-
import { generateUuid } from '
|
|
8
|
-
import { createFileSystemProviderError, FileSystemProviderErrorCode } from '
|
|
1
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
2
|
+
import { toErrorMessage } from 'vscode/vscode/vs/base/common/errorMessage';
|
|
3
|
+
import { canceled } from 'vscode/vscode/vs/base/common/errors';
|
|
4
|
+
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
5
|
+
import { Disposable, DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { newWriteableStream } from 'vscode/vscode/vs/base/common/stream';
|
|
7
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
8
|
+
import { createFileSystemProviderError, FileSystemProviderErrorCode } from 'vscode/vscode/vs/platform/files/common/files';
|
|
9
9
|
import { reviveFileChanges } from 'vscode/vscode/vs/platform/files/common/watcher';
|
|
10
10
|
|
|
11
11
|
class DiskFileSystemProviderClient extends Disposable {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { URI } from '
|
|
2
|
-
import { Disposable } from '
|
|
1
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
|
|
4
4
|
class RemoteLoggerChannelClient extends Disposable {
|
|
5
5
|
constructor(loggerService, channel) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { RunOnceScheduler } from '
|
|
3
|
-
import { VSBuffer } from '
|
|
4
|
-
import { Emitter } from '
|
|
5
|
-
import { Disposable } from '
|
|
1
|
+
import { addDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
|
|
2
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
4
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
5
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { SocketDiagnostics } from 'vscode/vscode/vs/base/parts/ipc/common/ipc.net';
|
|
7
7
|
import { RemoteAuthorityResolverError, RemoteAuthorityResolverErrorCode } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
8
|
-
import { mainWindow } from '
|
|
8
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
9
9
|
|
|
10
10
|
class BrowserWebSocket extends Disposable {
|
|
11
11
|
traceSocketEvent(type, data) {
|
|
@@ -51,7 +51,7 @@ class BrowserWebSocket extends Disposable {
|
|
|
51
51
|
enqueue(blob);
|
|
52
52
|
};
|
|
53
53
|
this._socket.addEventListener('message', this._socketMessageListener);
|
|
54
|
-
this._register(
|
|
54
|
+
this._register(addDisposableListener(this._socket, 'open', (e) => {
|
|
55
55
|
this.traceSocketEvent("open" );
|
|
56
56
|
this._onOpen.fire();
|
|
57
57
|
}));
|
|
@@ -72,7 +72,7 @@ class BrowserWebSocket extends Disposable {
|
|
|
72
72
|
pendingErrorEvent = err;
|
|
73
73
|
sendPendingErrorNow();
|
|
74
74
|
};
|
|
75
|
-
this._register(
|
|
75
|
+
this._register(addDisposableListener(this._socket, 'close', (e) => {
|
|
76
76
|
this.traceSocketEvent("close" , { code: e.code, reason: e.reason, wasClean: e.wasClean });
|
|
77
77
|
this._isClosed = true;
|
|
78
78
|
if (pendingErrorEvent) {
|
|
@@ -99,7 +99,7 @@ class BrowserWebSocket extends Disposable {
|
|
|
99
99
|
}
|
|
100
100
|
this._onClose.fire({ code: e.code, reason: e.reason, wasClean: e.wasClean, event: e });
|
|
101
101
|
}));
|
|
102
|
-
this._register(
|
|
102
|
+
this._register(addDisposableListener(this._socket, 'error', (err) => {
|
|
103
103
|
this.traceSocketEvent("error" , { message: err?.message });
|
|
104
104
|
sendErrorSoon(err);
|
|
105
105
|
}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { mainWindow } from '
|
|
3
|
-
import { DeferredPromise } from '
|
|
4
|
-
import
|
|
5
|
-
import { Emitter } from '
|
|
6
|
-
import { Disposable } from '
|
|
7
|
-
import { RemoteAuthorities } from '
|
|
8
|
-
import
|
|
9
|
-
import { StopWatch } from '
|
|
10
|
-
import { ILogService } from '
|
|
11
|
-
import { IProductService } from '
|
|
2
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
3
|
+
import { DeferredPromise } from 'vscode/vscode/vs/base/common/async';
|
|
4
|
+
import { ErrorNoTelemetry } from 'vscode/vscode/vs/base/common/errors';
|
|
5
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
6
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { RemoteAuthorities } from 'vscode/vscode/vs/base/common/network';
|
|
8
|
+
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
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';
|
|
12
12
|
import { getRemoteAuthorityPrefix, WebSocketRemoteConnection } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
13
|
-
import { getRemoteServerRootPath, parseAuthorityWithOptionalPort } from '
|
|
13
|
+
import { getRemoteServerRootPath, parseAuthorityWithOptionalPort } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
14
14
|
|
|
15
15
|
let RemoteAuthorityResolverService = class RemoteAuthorityResolverService extends Disposable {
|
|
16
16
|
constructor(isWorkbenchOptionsBasedResolution, connectionToken, resourceUriProvider, productService, _logService) {
|
|
@@ -57,9 +57,9 @@ let RemoteAuthorityResolverService = class RemoteAuthorityResolverService extend
|
|
|
57
57
|
const authorityPrefix = getRemoteAuthorityPrefix(authority);
|
|
58
58
|
const sw = StopWatch.create(false);
|
|
59
59
|
this._logService.info(`Resolving connection token (${authorityPrefix})...`);
|
|
60
|
-
|
|
60
|
+
mark(`code/willResolveConnectionToken/${authorityPrefix}`);
|
|
61
61
|
const connectionToken = await Promise.resolve(this._connectionTokens.get(authority) || this._connectionToken);
|
|
62
|
-
|
|
62
|
+
mark(`code/didResolveConnectionToken/${authorityPrefix}`);
|
|
63
63
|
this._logService.info(`Resolved connection token (${authorityPrefix}) after ${sw.elapsed()} ms`);
|
|
64
64
|
const defaultPort = (/^https:/.test(mainWindow.location.href) ? 443 : 80);
|
|
65
65
|
const { host, port } = parseAuthorityWithOptionalPort(authority, defaultPort);
|
|
@@ -91,7 +91,7 @@ let RemoteAuthorityResolverService = class RemoteAuthorityResolverService extend
|
|
|
91
91
|
_setResolvedAuthorityError(authority, err) {
|
|
92
92
|
if (( this._resolveAuthorityRequests.has(authority))) {
|
|
93
93
|
const request = this._resolveAuthorityRequests.get(authority);
|
|
94
|
-
request.error(
|
|
94
|
+
request.error(ErrorNoTelemetry.fromError(err));
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
_setAuthorityConnectionToken(authority, connectionToken) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { REMOTE_EXPLORER_TYPE_KEY, IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
4
|
-
import { isStringArray } from '
|
|
4
|
+
import { isStringArray } from 'vscode/vscode/vs/base/common/types';
|
|
5
5
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
6
|
-
import { IStorageService } from '
|
|
7
|
-
import { RawContextKey, ContextKeyExpr, IContextKeyService } from '
|
|
8
|
-
import { MenuId, MenuRegistry, registerAction2, Action2 } from '
|
|
6
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
7
|
+
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
8
|
+
import { MenuId, MenuRegistry, registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
9
|
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
10
10
|
import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
11
|
-
import { IWorkspaceContextService } from '
|
|
12
|
-
import { Disposable, DisposableMap } from '
|
|
11
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
12
|
+
import { Disposable, DisposableMap } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
13
13
|
|
|
14
14
|
const SELECTED_REMOTE_IN_EXPLORER = ( new RawContextKey('selectedRemoteInExplorer', ''));
|
|
15
15
|
let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
@@ -25,7 +25,7 @@ let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
|
25
25
|
this.switchRemoteMenu = MenuId.for('workbench.remote.menu.switchRemoteMenu');
|
|
26
26
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
27
27
|
submenu: this.switchRemoteMenu,
|
|
28
|
-
title: (
|
|
28
|
+
title: ( localizeWithPath(
|
|
29
29
|
'vs/workbench/contrib/remote/browser/explorerViewItems',
|
|
30
30
|
'switchRemote.label',
|
|
31
31
|
"Switch Remote"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
2
|
-
import { Registry } from '
|
|
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';
|
|
5
5
|
import { RemoteAgentConnectionStatusListener, RemoteMarkers } from './remote.js';
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/remoteViewlet.css.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { URI } from '
|
|
3
|
+
import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { append, $, disposableWindowInterval } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
6
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
7
|
-
import { ITelemetryService } from '
|
|
8
|
-
import { IWorkspaceContextService } from '
|
|
9
|
-
import { IStorageService } from '
|
|
10
|
-
import { IConfigurationService } from '
|
|
11
|
-
import { IInstantiationService } from '
|
|
12
|
-
import { IThemeService } from '
|
|
13
|
-
import { ThemeIcon } from '
|
|
14
|
-
import { IContextMenuService } from '
|
|
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';
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
13
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
14
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
15
15
|
import { isProposedApiEnabled, IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
16
16
|
import { FilterViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewsViewlet';
|
|
17
17
|
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
18
|
-
import { IContextKeyService } from '
|
|
18
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
19
19
|
import { Extensions, IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
20
|
-
import { Registry } from '
|
|
21
|
-
import { IOpenerService } from '
|
|
22
|
-
import { IQuickInputService } from '
|
|
23
|
-
import { ICommandService } from '
|
|
24
|
-
import { IProgressService } from '
|
|
20
|
+
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
25
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
26
26
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
27
|
-
import Severity from '
|
|
27
|
+
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
28
28
|
import { ReloadWindowAction } from 'vscode/vscode/vs/workbench/browser/actions/windowActions';
|
|
29
|
-
import { Disposable } from '
|
|
29
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
30
30
|
import { SwitchRemoteViewItem } from './explorerViewItems.js';
|
|
31
|
-
import { isStringArray } from '
|
|
31
|
+
import { isStringArray } from 'vscode/vscode/vs/base/common/types';
|
|
32
32
|
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
33
33
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
34
34
|
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
35
|
-
import { WorkbenchAsyncDataTree } from '
|
|
36
|
-
import { IKeybindingService } from '
|
|
37
|
-
import { Event, Emitter } from '
|
|
38
|
-
import { SyncDescriptor } from '
|
|
35
|
+
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
36
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
37
|
+
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
38
|
+
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
39
39
|
import { remoteExplorerViewIcon, getStartedIcon, documentationIcon, reviewIssuesIcon, reportIssuesIcon } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteIcons';
|
|
40
|
-
import { ILogService } from '
|
|
40
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
41
41
|
import { ITimerService } from 'vscode/vscode/vs/workbench/services/timer/browser/timerService';
|
|
42
|
-
import { getRemoteName } from '
|
|
42
|
+
import { getRemoteName } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
43
43
|
import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
44
44
|
import { IWalkthroughsService } from 'vscode/vscode/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService';
|
|
45
|
-
import { Schemas } from '
|
|
46
|
-
import { mainWindow } from '
|
|
45
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
46
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
47
47
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
48
48
|
|
|
49
49
|
class HelpTreeVirtualDelegate {
|
|
@@ -60,15 +60,15 @@ class HelpTreeRenderer {
|
|
|
60
60
|
}
|
|
61
61
|
renderTemplate(container) {
|
|
62
62
|
container.classList.add('remote-help-tree-node-item');
|
|
63
|
-
const icon =
|
|
63
|
+
const icon = append(container, $('.remote-help-tree-node-item-icon'));
|
|
64
64
|
const parent = container;
|
|
65
65
|
return { parent, icon };
|
|
66
66
|
}
|
|
67
67
|
renderElement(element, index, templateData, height) {
|
|
68
68
|
const container = templateData.parent;
|
|
69
|
-
|
|
69
|
+
append(container, templateData.icon);
|
|
70
70
|
templateData.icon.classList.add(...element.element.iconClasses);
|
|
71
|
-
const labelContainer =
|
|
71
|
+
const labelContainer = append(container, $('.help-item-label'));
|
|
72
72
|
labelContainer.innerText = element.element.label;
|
|
73
73
|
}
|
|
74
74
|
disposeTemplate(templateData) {
|
|
@@ -113,7 +113,7 @@ class HelpModel {
|
|
|
113
113
|
const getStarted = this.viewModel.helpInformation.filter(info => info.getStarted);
|
|
114
114
|
if (getStarted.length) {
|
|
115
115
|
const helpItemValues = ( getStarted.map((info) => this.createHelpItemValue(info, 'getStarted')));
|
|
116
|
-
const getStartedHelpItem = this.items?.find(item => item.icon === getStartedIcon) ?? ( new GetStartedHelpItem(getStartedIcon, (
|
|
116
|
+
const getStartedHelpItem = this.items?.find(item => item.icon === getStartedIcon) ?? ( new GetStartedHelpItem(getStartedIcon, ( localizeWithPath(
|
|
117
117
|
'vs/workbench/contrib/remote/browser/remote',
|
|
118
118
|
'remote.help.getStarted',
|
|
119
119
|
"Get Started"
|
|
@@ -124,7 +124,7 @@ class HelpModel {
|
|
|
124
124
|
const documentation = this.viewModel.helpInformation.filter(info => info.documentation);
|
|
125
125
|
if (documentation.length) {
|
|
126
126
|
const helpItemValues = ( documentation.map((info) => this.createHelpItemValue(info, 'documentation')));
|
|
127
|
-
const documentationHelpItem = this.items?.find(item => item.icon === documentationIcon) ?? ( new HelpItem(documentationIcon, (
|
|
127
|
+
const documentationHelpItem = this.items?.find(item => item.icon === documentationIcon) ?? ( new HelpItem(documentationIcon, ( localizeWithPath(
|
|
128
128
|
'vs/workbench/contrib/remote/browser/remote',
|
|
129
129
|
'remote.help.documentation',
|
|
130
130
|
"Read Documentation"
|
|
@@ -135,7 +135,7 @@ class HelpModel {
|
|
|
135
135
|
const issues = this.viewModel.helpInformation.filter(info => info.issues);
|
|
136
136
|
if (issues.length) {
|
|
137
137
|
const helpItemValues = ( issues.map((info) => this.createHelpItemValue(info, 'issues')));
|
|
138
|
-
const reviewIssuesHelpItem = this.items?.find(item => item.icon === reviewIssuesIcon) ?? ( new HelpItem(reviewIssuesIcon, (
|
|
138
|
+
const reviewIssuesHelpItem = this.items?.find(item => item.icon === reviewIssuesIcon) ?? ( new HelpItem(reviewIssuesIcon, ( localizeWithPath(
|
|
139
139
|
'vs/workbench/contrib/remote/browser/remote',
|
|
140
140
|
'remote.help.issues',
|
|
141
141
|
"Review Issues"
|
|
@@ -145,7 +145,7 @@ class HelpModel {
|
|
|
145
145
|
}
|
|
146
146
|
if (helpItems.length) {
|
|
147
147
|
const helpItemValues = ( this.viewModel.helpInformation.map(info => this.createHelpItemValue(info, 'reportIssue')));
|
|
148
|
-
const issueReporterItem = this.items?.find(item => item.icon === reportIssuesIcon) ?? ( new IssueReporterItem(reportIssuesIcon, (
|
|
148
|
+
const issueReporterItem = this.items?.find(item => item.icon === reportIssuesIcon) ?? ( new IssueReporterItem(reportIssuesIcon, ( localizeWithPath(
|
|
149
149
|
'vs/workbench/contrib/remote/browser/remote',
|
|
150
150
|
'remote.help.report',
|
|
151
151
|
"Report Issue"
|
|
@@ -266,7 +266,7 @@ class HelpItemBase {
|
|
|
266
266
|
if (this.values.length > 1) {
|
|
267
267
|
const actions = await this.getActions();
|
|
268
268
|
if (actions.length) {
|
|
269
|
-
const action = await this.quickInputService.pick(actions, { placeHolder: (
|
|
269
|
+
const action = await this.quickInputService.pick(actions, { placeHolder: ( localizeWithPath(
|
|
270
270
|
'vs/workbench/contrib/remote/browser/remote',
|
|
271
271
|
'pickRemoteExtension',
|
|
272
272
|
"Select url to open"
|
|
@@ -331,7 +331,7 @@ class IssueReporterItem extends HelpItemBase {
|
|
|
331
331
|
}
|
|
332
332
|
let HelpPanel = class HelpPanel extends ViewPane {
|
|
333
333
|
static { this.ID = '~remote.helpPanel'; }
|
|
334
|
-
static { this.TITLE = (
|
|
334
|
+
static { this.TITLE = ( localize2WithPath(
|
|
335
335
|
'vs/workbench/contrib/remote/browser/remote',
|
|
336
336
|
'remote.help',
|
|
337
337
|
"Help and feedback"
|
|
@@ -357,7 +357,7 @@ let HelpPanel = class HelpPanel extends ViewPane {
|
|
|
357
357
|
getAriaLabel: (item) => {
|
|
358
358
|
return item.label;
|
|
359
359
|
},
|
|
360
|
-
getWidgetAriaLabel: () => (
|
|
360
|
+
getWidgetAriaLabel: () => ( localizeWithPath('vs/workbench/contrib/remote/browser/remote', 'remotehelp', "Remote Help"))
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
const model = ( new HelpModel(
|
|
@@ -486,7 +486,7 @@ let RemoteViewPaneContainer = class RemoteViewPaneContainer extends FilterViewPa
|
|
|
486
486
|
this.remoteExplorerService.targetType = isStringArray(viewDescriptor.remoteAuthority) ? viewDescriptor.remoteAuthority : [viewDescriptor.remoteAuthority];
|
|
487
487
|
}
|
|
488
488
|
getTitle() {
|
|
489
|
-
const title = (
|
|
489
|
+
const title = ( localizeWithPath(
|
|
490
490
|
'vs/workbench/contrib/remote/browser/remote',
|
|
491
491
|
'remote.explorer',
|
|
492
492
|
"Remote Explorer"
|
|
@@ -509,7 +509,7 @@ RemoteViewPaneContainer = ( __decorate([
|
|
|
509
509
|
], RemoteViewPaneContainer));
|
|
510
510
|
( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
511
511
|
id: VIEWLET_ID,
|
|
512
|
-
title: { value: (
|
|
512
|
+
title: { value: ( localizeWithPath(
|
|
513
513
|
'vs/workbench/contrib/remote/browser/remote',
|
|
514
514
|
'remote.explorer',
|
|
515
515
|
"Remote Explorer"
|
|
@@ -606,7 +606,7 @@ class ReconnectionTimer {
|
|
|
606
606
|
constructor(parent, completionTime) {
|
|
607
607
|
this._parent = parent;
|
|
608
608
|
this._completionTime = completionTime;
|
|
609
|
-
this._renderInterval =
|
|
609
|
+
this._renderInterval = disposableWindowInterval(mainWindow, () => this._render(), 1000);
|
|
610
610
|
this._render();
|
|
611
611
|
}
|
|
612
612
|
dispose() {
|
|
@@ -619,7 +619,7 @@ class ReconnectionTimer {
|
|
|
619
619
|
}
|
|
620
620
|
const remainingTime = Math.ceil(remainingTimeMs / 1000);
|
|
621
621
|
if (remainingTime === 1) {
|
|
622
|
-
this._parent.report((
|
|
622
|
+
this._parent.report(( localizeWithPath(
|
|
623
623
|
'vs/workbench/contrib/remote/browser/remote',
|
|
624
624
|
'reconnectionWaitOne',
|
|
625
625
|
"Attempting to reconnect in {0} second...",
|
|
@@ -627,7 +627,7 @@ class ReconnectionTimer {
|
|
|
627
627
|
)));
|
|
628
628
|
}
|
|
629
629
|
else {
|
|
630
|
-
this._parent.report((
|
|
630
|
+
this._parent.report(( localizeWithPath(
|
|
631
631
|
'vs/workbench/contrib/remote/browser/remote',
|
|
632
632
|
'reconnectionWaitMany',
|
|
633
633
|
"Attempting to reconnect in {0} seconds...",
|
|
@@ -681,7 +681,7 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
681
681
|
let lastIncomingDataTime = 0;
|
|
682
682
|
let reconnectionAttempts = 0;
|
|
683
683
|
const reconnectButton = {
|
|
684
|
-
label: (
|
|
684
|
+
label: ( localizeWithPath(
|
|
685
685
|
'vs/workbench/contrib/remote/browser/remote',
|
|
686
686
|
'reconnectNow',
|
|
687
687
|
"Reconnect Now"
|
|
@@ -691,7 +691,7 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
691
691
|
}
|
|
692
692
|
};
|
|
693
693
|
const reloadButton = {
|
|
694
|
-
label: (
|
|
694
|
+
label: ( localizeWithPath(
|
|
695
695
|
'vs/workbench/contrib/remote/browser/remote',
|
|
696
696
|
'reloadWindow',
|
|
697
697
|
"Reload Window"
|
|
@@ -725,7 +725,7 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
725
725
|
if (!visibleProgress) {
|
|
726
726
|
visibleProgress = showProgress(null, [reconnectButton, reloadButton]);
|
|
727
727
|
}
|
|
728
|
-
visibleProgress.report((
|
|
728
|
+
visibleProgress.report(( localizeWithPath(
|
|
729
729
|
'vs/workbench/contrib/remote/browser/remote',
|
|
730
730
|
'connectionLost',
|
|
731
731
|
"Connection Lost"
|
|
@@ -751,7 +751,7 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
751
751
|
});
|
|
752
752
|
if (visibleProgress || e.millisSinceLastIncomingData > DISCONNECT_PROMPT_TIME) {
|
|
753
753
|
visibleProgress = showProgress(null, [reloadButton]);
|
|
754
|
-
visibleProgress.report((
|
|
754
|
+
visibleProgress.report(( localizeWithPath(
|
|
755
755
|
'vs/workbench/contrib/remote/browser/remote',
|
|
756
756
|
'reconnectionRunning',
|
|
757
757
|
"Disconnected. Attempting to reconnect..."
|
|
@@ -783,12 +783,12 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
783
783
|
this._reloadWindowShown = true;
|
|
784
784
|
dialogService.confirm({
|
|
785
785
|
type: Severity.Error,
|
|
786
|
-
message: (
|
|
786
|
+
message: ( localizeWithPath(
|
|
787
787
|
'vs/workbench/contrib/remote/browser/remote',
|
|
788
788
|
'reconnectionPermanentFailure',
|
|
789
789
|
"Cannot reconnect. Please reload the window."
|
|
790
790
|
)),
|
|
791
|
-
primaryButton: (
|
|
791
|
+
primaryButton: ( localizeWithPath(
|
|
792
792
|
'vs/workbench/contrib/remote/browser/remote',
|
|
793
793
|
{ key: 'reloadWindow.dialog', comment: ['&& denotes a mnemonic'] },
|
|
794
794
|
"&&Reload Window"
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { remoteConnectionLatencyMeasurer, IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
4
|
-
import { RunOnceScheduler, retry } from '
|
|
5
|
-
import { Emitter, Event } from '
|
|
6
|
-
import { Disposable } from '
|
|
7
|
-
import { MenuId, registerAction2, Action2, MenuRegistry, MenuItemAction, IMenuService } from '
|
|
4
|
+
import { RunOnceScheduler, retry } from 'vscode/vscode/vs/base/common/async';
|
|
5
|
+
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
6
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { MenuId, registerAction2, Action2, MenuRegistry, MenuItemAction, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
8
8
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
9
|
-
import { ILabelService } from '
|
|
10
|
-
import { RawContextKey, ContextKeyExpr, IContextKeyService } from '
|
|
11
|
-
import { ICommandService } from '
|
|
12
|
-
import { Schemas } from '
|
|
9
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
10
|
+
import { RawContextKey, ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
12
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
13
13
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
14
|
-
import { IQuickInputService } from '
|
|
14
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
15
15
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
16
16
|
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
17
17
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
18
|
-
import { isWeb, PlatformToString, platform } from '
|
|
19
|
-
import { truncate } from '
|
|
20
|
-
import { IWorkspaceContextService } from '
|
|
21
|
-
import { getRemoteName } from '
|
|
18
|
+
import { isWeb, PlatformToString, platform } from 'vscode/vscode/vs/base/common/platform';
|
|
19
|
+
import { truncate } from 'vscode/vscode/vs/base/common/strings';
|
|
20
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
21
|
+
import { getRemoteName } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
22
22
|
import { getVirtualWorkspaceLocation } from 'vscode/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
23
|
-
import { getCodiconAriaLabel } from '
|
|
24
|
-
import { ILogService } from '
|
|
23
|
+
import { getCodiconAriaLabel } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
24
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
25
25
|
import { ReloadWindowAction } from 'vscode/vscode/vs/workbench/browser/actions/windowActions';
|
|
26
26
|
import { EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT, IExtensionGalleryService, IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
27
27
|
import { VIEWLET_ID, LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
28
|
-
import { MarkdownString } from '
|
|
28
|
+
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
29
29
|
import { RemoteNameContext, VirtualWorkspaceContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
30
30
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
31
|
-
import { ITelemetryService } from '
|
|
32
|
-
import { IProductService } from '
|
|
33
|
-
import { DomEmitter } from '
|
|
34
|
-
import { ExtensionIdentifier } from '
|
|
35
|
-
import { CancellationToken } from '
|
|
36
|
-
import { ThemeIcon } from '
|
|
31
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
32
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
33
|
+
import { DomEmitter } from 'vscode/vscode/vs/base/browser/event';
|
|
34
|
+
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
35
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
36
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
37
37
|
import { infoIcon } from 'vscode/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
|
|
38
|
-
import { IOpenerService } from '
|
|
39
|
-
import { URI } from '
|
|
40
|
-
import { mainWindow } from '
|
|
38
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
39
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
40
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
41
41
|
|
|
42
42
|
var RemoteStatusIndicator_1;
|
|
43
43
|
let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
@@ -111,7 +111,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
111
111
|
this.updateRemoteStatusIndicator();
|
|
112
112
|
}
|
|
113
113
|
registerActions() {
|
|
114
|
-
const category = { value: (
|
|
114
|
+
const category = { value: ( localizeWithPath(
|
|
115
115
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
116
116
|
'remote.category',
|
|
117
117
|
"Remote"
|
|
@@ -122,7 +122,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
122
122
|
super({
|
|
123
123
|
id: RemoteStatusIndicator_1.REMOTE_ACTIONS_COMMAND_ID,
|
|
124
124
|
category,
|
|
125
|
-
title: { value: (
|
|
125
|
+
title: { value: ( localizeWithPath(
|
|
126
126
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
127
127
|
'remote.showMenu',
|
|
128
128
|
"Show Remote Menu"
|
|
@@ -142,7 +142,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
142
142
|
super({
|
|
143
143
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
144
144
|
category,
|
|
145
|
-
title: { value: (
|
|
145
|
+
title: { value: ( localizeWithPath(
|
|
146
146
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
147
147
|
'remote.close',
|
|
148
148
|
"Close Remote Connection"
|
|
@@ -158,7 +158,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
158
158
|
group: '6_close',
|
|
159
159
|
command: {
|
|
160
160
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
161
|
-
title: (
|
|
161
|
+
title: ( localizeWithPath(
|
|
162
162
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
163
163
|
{ key: 'miCloseRemote', comment: ['&& denotes a mnemonic'] },
|
|
164
164
|
"Close Re&&mote Connection"
|
|
@@ -174,7 +174,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
174
174
|
super({
|
|
175
175
|
id: RemoteStatusIndicator_1.INSTALL_REMOTE_EXTENSIONS_ID,
|
|
176
176
|
category,
|
|
177
|
-
title: { value: (
|
|
177
|
+
title: { value: ( localizeWithPath(
|
|
178
178
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
179
179
|
'remote.install',
|
|
180
180
|
"Install Remote Development Extensions"
|
|
@@ -391,18 +391,18 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
391
391
|
const hostLabel = this.labelService.getHostLabel(Schemas.vscodeRemote, this.remoteAuthority) || this.remoteAuthority;
|
|
392
392
|
switch (this.connectionState) {
|
|
393
393
|
case 'initializing':
|
|
394
|
-
this.renderRemoteStatusIndicator((
|
|
394
|
+
this.renderRemoteStatusIndicator(( localizeWithPath(
|
|
395
395
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
396
396
|
'host.open',
|
|
397
397
|
"Opening Remote..."
|
|
398
|
-
)), (
|
|
398
|
+
)), ( localizeWithPath(
|
|
399
399
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
400
400
|
'host.open',
|
|
401
401
|
"Opening Remote..."
|
|
402
402
|
)), undefined, true );
|
|
403
403
|
break;
|
|
404
404
|
case 'reconnecting':
|
|
405
|
-
this.renderRemoteStatusIndicator(`${(
|
|
405
|
+
this.renderRemoteStatusIndicator(`${( localizeWithPath(
|
|
406
406
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
407
407
|
'host.reconnecting',
|
|
408
408
|
"Reconnecting to {0}...",
|
|
@@ -410,7 +410,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
410
410
|
))}`, undefined, undefined, true );
|
|
411
411
|
break;
|
|
412
412
|
case 'disconnected':
|
|
413
|
-
this.renderRemoteStatusIndicator(`$(alert) ${(
|
|
413
|
+
this.renderRemoteStatusIndicator(`$(alert) ${( localizeWithPath(
|
|
414
414
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
415
415
|
'disconnectedFrom',
|
|
416
416
|
"Disconnected from {0}",
|
|
@@ -424,7 +424,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
424
424
|
tooltip.appendMarkdown(hostNameTooltip);
|
|
425
425
|
}
|
|
426
426
|
else {
|
|
427
|
-
tooltip.appendText((
|
|
427
|
+
tooltip.appendText(( localizeWithPath(
|
|
428
428
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
429
429
|
{ key: 'host.tooltip', comment: ['{0} is a remote host name, e.g. Dev Container'] },
|
|
430
430
|
"Editing on {0}",
|
|
@@ -445,7 +445,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
445
445
|
tooltip.appendMarkdown(hostNameTooltip);
|
|
446
446
|
}
|
|
447
447
|
else {
|
|
448
|
-
tooltip.appendText((
|
|
448
|
+
tooltip.appendText(( localizeWithPath(
|
|
449
449
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
450
450
|
{ key: 'workspace.tooltip', comment: ['{0} is a remote workspace name, e.g. GitHub'] },
|
|
451
451
|
"Editing on {0}",
|
|
@@ -454,7 +454,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
454
454
|
}
|
|
455
455
|
if (!isWeb || this.remoteAuthority) {
|
|
456
456
|
tooltip.appendMarkdown('\n\n');
|
|
457
|
-
tooltip.appendMarkdown((
|
|
457
|
+
tooltip.appendMarkdown(( localizeWithPath(
|
|
458
458
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
459
459
|
{ key: 'workspace.tooltip2', comment: ['[features are not available]({1}) is a link. Only translate `features are not available`. Do not change brackets and parentheses or {0}'] },
|
|
460
460
|
"Some [features are not available]({0}) for resources located on a virtual file system.",
|
|
@@ -465,7 +465,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
this.renderRemoteStatusIndicator(`$(remote)`, (
|
|
468
|
+
this.renderRemoteStatusIndicator(`$(remote)`, ( localizeWithPath(
|
|
469
469
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
470
470
|
'noHost.tooltip',
|
|
471
471
|
"Open a Remote Window"
|
|
@@ -475,7 +475,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
475
475
|
renderRemoteStatusIndicator(initialText, initialTooltip, command, showProgress) {
|
|
476
476
|
const { text, tooltip, ariaLabel } = this.withNetworkStatus(initialText, initialTooltip, showProgress);
|
|
477
477
|
const properties = {
|
|
478
|
-
name: (
|
|
478
|
+
name: ( localizeWithPath(
|
|
479
479
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
480
480
|
'remoteHost',
|
|
481
481
|
"Remote Host"
|
|
@@ -506,7 +506,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
506
506
|
}
|
|
507
507
|
switch (this.networkState) {
|
|
508
508
|
case 'offline': {
|
|
509
|
-
const offlineMessage = (
|
|
509
|
+
const offlineMessage = ( localizeWithPath(
|
|
510
510
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
511
511
|
'networkStatusOfflineTooltip',
|
|
512
512
|
"Network appears to be offline, certain features might be unavailable."
|
|
@@ -518,7 +518,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
518
518
|
}
|
|
519
519
|
case 'high-latency':
|
|
520
520
|
text = textWithAlert();
|
|
521
|
-
tooltip = this.appendTooltipLine(tooltip, (
|
|
521
|
+
tooltip = this.appendTooltipLine(tooltip, ( localizeWithPath(
|
|
522
522
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
523
523
|
'networkStatusHighLatencyTooltip',
|
|
524
524
|
"Network appears to have high latency ({0}ms last, {1}ms average), certain features may be slow to respond.",
|
|
@@ -631,7 +631,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
631
631
|
const label = metadata.startConnectLabel;
|
|
632
632
|
const buttons = [{
|
|
633
633
|
iconClass: ThemeIcon.asClassName(infoIcon),
|
|
634
|
-
tooltip: (
|
|
634
|
+
tooltip: ( localizeWithPath(
|
|
635
635
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
636
636
|
'remote.startActions.help',
|
|
637
637
|
"Learn More"
|
|
@@ -641,7 +641,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
items.push({
|
|
644
|
-
type: 'separator', label: (
|
|
644
|
+
type: 'separator', label: ( localizeWithPath(
|
|
645
645
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
646
646
|
'remote.startActions.install',
|
|
647
647
|
'Install'
|
|
@@ -658,7 +658,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
658
658
|
items.push({
|
|
659
659
|
type: 'item',
|
|
660
660
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
661
|
-
label: (
|
|
661
|
+
label: ( localizeWithPath(
|
|
662
662
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
663
663
|
'closeRemoteConnection.title',
|
|
664
664
|
'Close Remote Connection'
|
|
@@ -668,7 +668,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
668
668
|
items.push({
|
|
669
669
|
type: 'item',
|
|
670
670
|
id: ReloadWindowAction.ID,
|
|
671
|
-
label: (
|
|
671
|
+
label: ( localizeWithPath(
|
|
672
672
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
673
673
|
'reloadWindow',
|
|
674
674
|
'Reload Window'
|
|
@@ -680,7 +680,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
680
680
|
items.push({
|
|
681
681
|
type: 'item',
|
|
682
682
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
683
|
-
label: (
|
|
683
|
+
label: ( localizeWithPath(
|
|
684
684
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
685
685
|
'closeVirtualWorkspace.title',
|
|
686
686
|
'Close Remote Workspace'
|
|
@@ -694,7 +694,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
694
694
|
return items;
|
|
695
695
|
};
|
|
696
696
|
const quickPick = this.quickInputService.createQuickPick();
|
|
697
|
-
quickPick.placeholder = (
|
|
697
|
+
quickPick.placeholder = ( localizeWithPath(
|
|
698
698
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
699
699
|
'remoteActions',
|
|
700
700
|
"Select an option to open a Remote Window"
|
|
@@ -710,7 +710,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
710
710
|
if (remoteExtension) {
|
|
711
711
|
quickPick.items = [];
|
|
712
712
|
quickPick.busy = true;
|
|
713
|
-
quickPick.placeholder = (
|
|
713
|
+
quickPick.placeholder = ( localizeWithPath(
|
|
714
714
|
'vs/workbench/contrib/remote/browser/remoteIndicator',
|
|
715
715
|
'remote.startActions.installingExtension',
|
|
716
716
|
'Installing extension... '
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
4
4
|
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
5
5
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { TunnelPrivacyId, TunnelProtocol, ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
4
|
-
import { Disposable } from '
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
6
|
-
import { IOpenerService } from '
|
|
7
|
-
import { URI } from '
|
|
6
|
+
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener';
|
|
7
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
8
8
|
import { IRemoteExplorerService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
9
|
-
import { ILogService } from '
|
|
10
|
-
import { IContextKeyService } from '
|
|
9
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { forwardedPortsViewEnabled } from 'vscode/vscode/vs/workbench/services/remote/common/tunnelModel';
|
|
12
12
|
|
|
13
13
|
let TunnelFactoryContribution = class TunnelFactoryContribution extends Disposable {
|
|
@@ -23,7 +23,7 @@ let TunnelFactoryContribution = class TunnelFactoryContribution extends Disposab
|
|
|
23
23
|
privacyOptions = [
|
|
24
24
|
{
|
|
25
25
|
id: 'private',
|
|
26
|
-
label: (
|
|
26
|
+
label: ( localizeWithPath(
|
|
27
27
|
'vs/workbench/contrib/remote/browser/tunnelFactory',
|
|
28
28
|
'tunnelPrivacy.private',
|
|
29
29
|
"Private"
|
|
@@ -32,7 +32,7 @@ let TunnelFactoryContribution = class TunnelFactoryContribution extends Disposab
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
id: 'public',
|
|
35
|
-
label: (
|
|
35
|
+
label: ( localizeWithPath(
|
|
36
36
|
'vs/workbench/contrib/remote/browser/tunnelFactory',
|
|
37
37
|
'tunnelPrivacy.public',
|
|
38
38
|
"Public"
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
3
|
-
import { Registry } from '
|
|
4
|
-
import { ILabelService } from '
|
|
5
|
-
import { OS, isWeb } from '
|
|
6
|
-
import { Schemas } from '
|
|
3
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
5
|
+
import { OS, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
6
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
7
7
|
import { remoteConnectionLatencyMeasurer, IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
8
|
-
import { ILoggerService } from '
|
|
9
|
-
import { localizeWithPath } from '
|
|
10
|
-
import { Disposable } from '
|
|
11
|
-
import { Extensions as Extensions$1 } from '
|
|
12
|
-
import { IFileService } from '
|
|
8
|
+
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
9
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
10
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
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
13
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
14
14
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
15
|
-
import { IWorkspaceContextService } from '
|
|
16
|
-
import { firstOrDefault } from '
|
|
17
|
-
import { registerAction2, Action2 } from '
|
|
18
|
-
import { Categories } from '
|
|
15
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
16
|
+
import { firstOrDefault } from 'vscode/vscode/vs/base/common/arrays';
|
|
17
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
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 { ITelemetryService } from '
|
|
21
|
-
import { getRemoteName } from '
|
|
20
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
21
|
+
import { getRemoteName } from 'vscode/vscode/vs/platform/remote/common/remoteHosts';
|
|
22
22
|
import { IDownloadService } from 'vscode/vscode/vs/platform/download/common/download';
|
|
23
23
|
import { DownloadServiceChannel } from '../../../../platform/download/common/downloadIpc.js';
|
|
24
24
|
import { RemoteLoggerChannelClient } from '../../../../platform/log/common/logIpc.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { VSBuffer } from '
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { getMediaOrTextMime } from '
|
|
5
|
-
import { URI } from '
|
|
6
|
-
import { FileOperationError, IFileService } from '
|
|
2
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { getMediaOrTextMime } from 'vscode/vscode/vs/base/common/mime';
|
|
5
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
|
+
import { FileOperationError, IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
7
7
|
|
|
8
8
|
let BrowserRemoteResourceLoader = class BrowserRemoteResourceLoader extends Disposable {
|
|
9
9
|
constructor(fileService, provider) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
4
4
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
5
5
|
import { RemoteAuthorityResolverError, IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
6
6
|
import { AbstractRemoteAgentService } from '../common/abstractRemoteAgentService.js';
|
|
7
|
-
import { IProductService } from '
|
|
7
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
8
8
|
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign';
|
|
9
|
-
import { ILogService } from '
|
|
10
|
-
import { Severity } from '
|
|
9
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
+
import { Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
11
11
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
12
|
-
import { Registry } from '
|
|
12
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
13
13
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
14
14
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
15
15
|
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
@@ -44,12 +44,12 @@ let RemoteConnectionFailureNotificationContribution = class RemoteConnectionFail
|
|
|
44
44
|
async _presentConnectionError(err) {
|
|
45
45
|
await this._dialogService.prompt({
|
|
46
46
|
type: Severity.Error,
|
|
47
|
-
message: (
|
|
47
|
+
message: ( localizeWithPath(
|
|
48
48
|
'vs/workbench/services/remote/browser/remoteAgentService',
|
|
49
49
|
'connectionError',
|
|
50
50
|
"An unexpected error occurred that requires a reload of this page."
|
|
51
51
|
)),
|
|
52
|
-
detail: (
|
|
52
|
+
detail: ( localizeWithPath(
|
|
53
53
|
'vs/workbench/services/remote/browser/remoteAgentService',
|
|
54
54
|
'connectionErrorDetail',
|
|
55
55
|
"The workbench failed to connect to the server (Error: {0})",
|
|
@@ -57,7 +57,7 @@ let RemoteConnectionFailureNotificationContribution = class RemoteConnectionFail
|
|
|
57
57
|
)),
|
|
58
58
|
buttons: [
|
|
59
59
|
{
|
|
60
|
-
label: (
|
|
60
|
+
label: ( localizeWithPath(
|
|
61
61
|
'vs/workbench/services/remote/browser/remoteAgentService',
|
|
62
62
|
{ key: 'reload', comment: ['&& denotes a mnemonic'] },
|
|
63
63
|
"&&Reload"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Disposable } from '
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import { getDelayedChannel } from 'vscode/vscode/vs/base/parts/ipc/common/ipc';
|
|
4
4
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
5
5
|
import { connectRemoteAgentManagement } from 'vscode/vscode/vs/platform/remote/common/remoteAgentConnection';
|
|
6
6
|
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
7
7
|
import { RemoteExtensionEnvironmentChannelClient } from './remoteAgentEnvironmentChannel.js';
|
|
8
|
-
import { Emitter } from '
|
|
8
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
9
9
|
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign';
|
|
10
|
-
import { ILogService } from '
|
|
11
|
-
import { IProductService } from '
|
|
10
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
11
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
12
12
|
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
13
13
|
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
14
14
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { URI } from '
|
|
2
|
-
import { revive } from '
|
|
1
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
+
import { revive } from 'vscode/vscode/vs/base/common/marshalling';
|
|
3
3
|
|
|
4
4
|
class RemoteExtensionEnvironmentChannelClient {
|
|
5
5
|
static async getEnvironmentData(channel, remoteAuthority, profile) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
3
3
|
import { RemoteExtensionsScannerChannelName } from 'vscode/vscode/vs/platform/remote/common/remoteExtensionsScanner';
|
|
4
|
-
import
|
|
5
|
-
import { URI } from '
|
|
4
|
+
import { language } from 'vscode/vscode/vs/base/common/platform';
|
|
5
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
6
6
|
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile';
|
|
7
7
|
import { IRemoteUserDataProfilesService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles';
|
|
8
8
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
9
|
-
import { ILogService } from '
|
|
9
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
10
|
import { IActiveLanguagePackService } from 'vscode/vscode/vs/workbench/services/localization/common/locale';
|
|
11
11
|
|
|
12
12
|
let RemoteExtensionsScannerService = class RemoteExtensionsScannerService {
|
|
@@ -26,7 +26,7 @@ let RemoteExtensionsScannerService = class RemoteExtensionsScannerService {
|
|
|
26
26
|
const languagePack = await this.activeLanguagePackService.getExtensionIdProvidingCurrentLocale();
|
|
27
27
|
return await this.withChannel(async (channel) => {
|
|
28
28
|
const profileLocation = this.userDataProfileService.currentProfile.isDefault ? undefined : (await this.remoteUserDataProfilesService.getRemoteProfile(this.userDataProfileService.currentProfile)).extensionsResource;
|
|
29
|
-
const scannedExtensions = await channel.call('scanExtensions', [
|
|
29
|
+
const scannedExtensions = await channel.call('scanExtensions', [language, profileLocation, this.environmentService.extensionDevelopmentLocationURI, languagePack]);
|
|
30
30
|
scannedExtensions.forEach((extension) => {
|
|
31
31
|
extension.extensionLocation = URI.revive(extension.extensionLocation);
|
|
32
32
|
});
|
|
@@ -41,7 +41,7 @@ let RemoteExtensionsScannerService = class RemoteExtensionsScannerService {
|
|
|
41
41
|
async scanSingleExtension(extensionLocation, isBuiltin) {
|
|
42
42
|
try {
|
|
43
43
|
return await this.withChannel(async (channel) => {
|
|
44
|
-
const extension = await channel.call('scanSingleExtension', [extensionLocation, isBuiltin,
|
|
44
|
+
const extension = await channel.call('scanSingleExtension', [extensionLocation, isBuiltin, language]);
|
|
45
45
|
if (extension !== null) {
|
|
46
46
|
extension.extensionLocation = URI.revive(extension.extensionLocation);
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getErrorMessage } from '
|
|
2
|
-
import { Disposable, DisposableStore } from '
|
|
3
|
-
import { Schemas } from '
|
|
1
|
+
import { getErrorMessage } from 'vscode/vscode/vs/base/common/errors';
|
|
2
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
4
4
|
import { DiskFileSystemProviderClient } from '../../../../platform/files/common/diskFileSystemProviderClient.js';
|
|
5
5
|
|
|
6
6
|
const REMOTE_FILE_SYSTEM_CHANNEL_NAME = 'remoteFilesystem';
|