@codingame/monaco-vscode-remote-agent-service-override 23.2.2 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +3 -11
- package/vscode/src/vs/platform/download/common/downloadIpc.d.ts +1 -1
- package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.d.ts +1 -1
- package/vscode/src/vs/platform/log/common/logIpc.d.ts +1 -1
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.d.ts +1 -1
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +2 -2
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +2 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +23 -23
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteConnectionHealth.js +6 -6
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIndicator.js +30 -30
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteStartEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/showCandidate.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelFactory.js +3 -3
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +49 -49
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +3 -3
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +22 -4
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.d.ts +2 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +6 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +3 -2
- package/vscode/src/vs/workbench/services/tunnel/browser/tunnelService.d.ts +1 -1
package/index.js
CHANGED
|
@@ -10,13 +10,13 @@ import { IRemoteAuthorityResolverService } from '@codingame/monaco-vscode-api/vs
|
|
|
10
10
|
import { RemoteAuthorityResolverService } from './vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js';
|
|
11
11
|
import { BrowserSocketFactory } from './vscode/src/vs/platform/remote/browser/browserSocketFactory.js';
|
|
12
12
|
import { RemoteFileSystemProviderClient } from './vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js';
|
|
13
|
-
import '@codingame/monaco-vscode-
|
|
14
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
13
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
14
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
15
15
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
16
16
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
17
17
|
import { RemoteExplorerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService';
|
|
18
18
|
import { IRemoteExplorerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
19
|
-
import { ExternalUriOpenerService } from '@codingame/monaco-vscode-
|
|
19
|
+
import { ExternalUriOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService';
|
|
20
20
|
import { IExternalUriOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service';
|
|
21
21
|
import { RemoteExtensionsScannerService } from './vscode/src/vs/workbench/services/remote/common/remoteExtensionsScanner.js';
|
|
22
22
|
import { IRemoteExtensionsScannerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteExtensionsScanner.service';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - remote-agent service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,16 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "23.2.2",
|
|
21
|
-
"@codingame/monaco-vscode-4a3ac544-9a61-534c-88df-756262793ef7-common": "23.2.2",
|
|
22
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.2.2",
|
|
23
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "23.2.2",
|
|
24
|
-
"@codingame/monaco-vscode-abed5a84-8a82-5f84-9412-88a736235bae-common": "23.2.2",
|
|
25
|
-
"@codingame/monaco-vscode-api": "23.2.2",
|
|
26
|
-
"@codingame/monaco-vscode-cc2a4237-8890-5664-9fcf-a56ecd22e3ef-common": "23.2.2",
|
|
27
|
-
"@codingame/monaco-vscode-environment-service-override": "23.2.2"
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "24.1.0"
|
|
28
20
|
},
|
|
29
21
|
"main": "index.js",
|
|
30
22
|
"module": "index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
2
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
3
|
import { IURITransformer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uriIpc";
|
|
4
|
-
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc";
|
|
5
5
|
import { IDownloadService } from "@codingame/monaco-vscode-api/vscode/vs/platform/download/common/download.service";
|
|
6
6
|
export declare class DownloadServiceChannel implements IServerChannel {
|
|
7
7
|
private readonly service;
|
|
@@ -3,7 +3,7 @@ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"
|
|
|
3
3
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { ReadableStreamEvents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/stream";
|
|
5
5
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
6
|
-
import { IChannel } from "@codingame/monaco-vscode-
|
|
6
|
+
import { IChannel } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc";
|
|
7
7
|
import { IFileAtomicReadOptions, IFileDeleteOptions, IFileOpenOptions, IFileOverwriteOptions, IFileReadStreamOptions, FileSystemProviderCapabilities, FileType, IFileWriteOptions, IFileChange, IFileSystemProviderWithFileAtomicReadCapability, IFileSystemProviderWithFileCloneCapability, IFileSystemProviderWithFileFolderCopyCapability, IFileSystemProviderWithFileReadStreamCapability, IFileSystemProviderWithFileReadWriteCapability, IFileSystemProviderWithOpenReadWriteCloseCapability, IStat, IWatchOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
8
8
|
export declare const LOCAL_FILE_SYSTEM_CHANNEL_NAME = "localFilesystem";
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
-
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IChannel, IServerChannel } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc";
|
|
4
4
|
import { AbstractLoggerService, ILogger, ILoggerOptions, ILoggerResource, LogLevel } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log";
|
|
5
5
|
import { ILoggerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
6
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VSBuffer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
-
import { ISocket, SocketDiagnosticsEventType } from "@codingame/monaco-vscode-
|
|
3
|
+
import { ISocket, SocketDiagnosticsEventType } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc.net";
|
|
4
4
|
import { ISocketFactory } from "../common/remoteSocketFactoryService.js";
|
|
5
5
|
import { RemoteConnectionType, WebSocketRemoteConnection } from "@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAuthorityResolver";
|
|
6
6
|
export interface IWebSocketFactory {
|
|
@@ -4,7 +4,7 @@ import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/co
|
|
|
4
4
|
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
5
5
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
-
import { SocketDiagnostics, SocketDiagnosticsEventType, SocketCloseEventType } from '@codingame/monaco-vscode-
|
|
7
|
+
import { SocketDiagnostics, SocketDiagnosticsEventType, SocketCloseEventType } from '@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc.net';
|
|
8
8
|
import { RemoteAuthorityResolverError, RemoteAuthorityResolverErrorCode } from '@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
9
9
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
10
10
|
|
|
@@ -77,7 +77,7 @@ class BrowserWebSocket extends Disposable {
|
|
|
77
77
|
this.traceSocketEvent(SocketDiagnosticsEventType.Close, { code: e.code, reason: e.reason, wasClean: e.wasClean });
|
|
78
78
|
this._isClosed = true;
|
|
79
79
|
if (pendingErrorEvent) {
|
|
80
|
-
if (!navigator.onLine) {
|
|
80
|
+
if (!mainWindow.navigator.onLine) {
|
|
81
81
|
sendErrorNow(( new RemoteAuthorityResolverError(
|
|
82
82
|
'Browser is offline',
|
|
83
83
|
RemoteAuthorityResolverErrorCode.TemporarilyNotAvailable,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { ISocket } from "@codingame/monaco-vscode-
|
|
2
|
+
import { ISocket } from "@codingame/monaco-vscode-api/vscode/vs/base/parts/ipc/common/ipc.net";
|
|
3
3
|
import { RemoteConnectionOfType, RemoteConnectionType, RemoteConnection } from "@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAuthorityResolver";
|
|
4
4
|
import { IRemoteSocketFactoryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteSocketFactoryService.service";
|
|
5
5
|
export interface ISocketFactory<T extends RemoteConnectionType> {
|
|
@@ -10,7 +10,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
10
10
|
import { RawContextKey, ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
12
12
|
import { MenuId, MenuRegistry, registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
13
|
-
import { VIEWLET_ID } from '@codingame/monaco-vscode-
|
|
13
|
+
import { VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
14
14
|
import { getVirtualWorkspaceLocation } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/virtualWorkspace';
|
|
15
15
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
16
16
|
import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -29,7 +29,7 @@ let SwitchRemoteViewItem = class SwitchRemoteViewItem extends Disposable {
|
|
|
29
29
|
this.switchRemoteMenu = MenuId.for('workbench.remote.menu.switchRemoteMenu');
|
|
30
30
|
this._register(MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
31
31
|
submenu: this.switchRemoteMenu,
|
|
32
|
-
title: ( localize(
|
|
32
|
+
title: ( localize(10199, "Switch Remote")),
|
|
33
33
|
group: 'navigation',
|
|
34
34
|
when: ( ContextKeyExpr.equals('viewContainer', VIEWLET_ID)),
|
|
35
35
|
order: 1,
|
|
@@ -6,7 +6,7 @@ import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
6
6
|
import { TunnelFactoryContribution } from './tunnelFactory.js';
|
|
7
7
|
import { RemoteAgentConnectionStatusListener, RemoteMarkers } from './remote.js';
|
|
8
8
|
import { RemoteStatusIndicator } from './remoteIndicator.js';
|
|
9
|
-
import { ForwardedPortsView, PortRestore, AutomaticPortForwarding } from '@codingame/monaco-vscode-
|
|
9
|
+
import { ForwardedPortsView, PortRestore, AutomaticPortForwarding } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
10
10
|
import { InitialRemoteConnectionHealthContribution } from './remoteConnectionHealth.js';
|
|
11
11
|
|
|
12
12
|
const workbenchContributionsRegistry = ( Registry.as(Extensions.Workbench));
|
|
@@ -16,8 +16,8 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
|
|
|
16
16
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
17
17
|
import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
18
18
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
19
|
-
import { FilterViewPaneContainer } from '@codingame/monaco-vscode-
|
|
20
|
-
import { VIEWLET_ID } from '@codingame/monaco-vscode-
|
|
19
|
+
import { FilterViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewsViewlet';
|
|
20
|
+
import { VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
21
21
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
22
22
|
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
23
23
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
@@ -29,20 +29,20 @@ import { ProgressLocation } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
29
29
|
import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
30
30
|
import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
31
31
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
32
|
-
import { PersistentConnectionEventType } from '@codingame/monaco-vscode-
|
|
32
|
+
import { PersistentConnectionEventType } from '@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAgentConnection';
|
|
33
33
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
34
|
-
import { ReloadWindowAction } from '@codingame/monaco-vscode-
|
|
34
|
+
import { ReloadWindowAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/actions/windowActions';
|
|
35
35
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
36
36
|
import { SwitchRemoteViewItem } from './explorerViewItems.js';
|
|
37
37
|
import { isStringArray } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
38
38
|
import { IRemoteExplorerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
39
39
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
40
|
-
import { ViewPane } from '@codingame/monaco-vscode-
|
|
40
|
+
import { ViewPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
41
41
|
import { WorkbenchAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
42
42
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
43
43
|
import { Event, Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
44
44
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
45
|
-
import { getStartedIcon, documentationIcon, reviewIssuesIcon, reportIssuesIcon, remoteExplorerViewIcon } from '@codingame/monaco-vscode-
|
|
45
|
+
import { getStartedIcon, documentationIcon, reviewIssuesIcon, reportIssuesIcon, remoteExplorerViewIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/remote/browser/remoteIcons';
|
|
46
46
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
47
47
|
import { ITimerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/timer/browser/timerService.service';
|
|
48
48
|
import { getRemoteName } from '@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteHosts';
|
|
@@ -121,27 +121,27 @@ class HelpModel extends Disposable {
|
|
|
121
121
|
const getStarted = this.viewModel.helpInformation.filter(info => info.getStarted);
|
|
122
122
|
if (getStarted.length) {
|
|
123
123
|
const helpItemValues = ( getStarted.map((info) => this.createHelpItemValue(info, 'getStarted')));
|
|
124
|
-
const getStartedHelpItem = this.items?.find(item => item.icon === getStartedIcon) ?? ( new GetStartedHelpItem(getStartedIcon, ( localize(
|
|
124
|
+
const getStartedHelpItem = this.items?.find(item => item.icon === getStartedIcon) ?? ( new GetStartedHelpItem(getStartedIcon, ( localize(10200, "Get Started")), helpItemValues, this.quickInputService, this.environmentService, this.openerService, this.remoteExplorerService, this.workspaceContextService, this.commandService));
|
|
125
125
|
getStartedHelpItem.values = helpItemValues;
|
|
126
126
|
helpItems.push(getStartedHelpItem);
|
|
127
127
|
}
|
|
128
128
|
const documentation = this.viewModel.helpInformation.filter(info => info.documentation);
|
|
129
129
|
if (documentation.length) {
|
|
130
130
|
const helpItemValues = ( documentation.map((info) => this.createHelpItemValue(info, 'documentation')));
|
|
131
|
-
const documentationHelpItem = this.items?.find(item => item.icon === documentationIcon) ?? ( new HelpItem(documentationIcon, ( localize(
|
|
131
|
+
const documentationHelpItem = this.items?.find(item => item.icon === documentationIcon) ?? ( new HelpItem(documentationIcon, ( localize(10201, "Read Documentation")), helpItemValues, this.quickInputService, this.environmentService, this.openerService, this.remoteExplorerService, this.workspaceContextService));
|
|
132
132
|
documentationHelpItem.values = helpItemValues;
|
|
133
133
|
helpItems.push(documentationHelpItem);
|
|
134
134
|
}
|
|
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, ( localize(
|
|
138
|
+
const reviewIssuesHelpItem = this.items?.find(item => item.icon === reviewIssuesIcon) ?? ( new HelpItem(reviewIssuesIcon, ( localize(10202, "Review Issues")), helpItemValues, this.quickInputService, this.environmentService, this.openerService, this.remoteExplorerService, this.workspaceContextService));
|
|
139
139
|
reviewIssuesHelpItem.values = helpItemValues;
|
|
140
140
|
helpItems.push(reviewIssuesHelpItem);
|
|
141
141
|
}
|
|
142
142
|
if (helpItems.length) {
|
|
143
143
|
const helpItemValues = ( this.viewModel.helpInformation.map(info => this.createHelpItemValue(info, 'reportIssue')));
|
|
144
|
-
const issueReporterItem = this.items?.find(item => item.icon === reportIssuesIcon) ?? ( new IssueReporterItem(reportIssuesIcon, ( localize(
|
|
144
|
+
const issueReporterItem = this.items?.find(item => item.icon === reportIssuesIcon) ?? ( new IssueReporterItem(reportIssuesIcon, ( localize(10203, "Report Issue")), helpItemValues, this.quickInputService, this.environmentService, this.commandService, this.openerService, this.remoteExplorerService, this.workspaceContextService));
|
|
145
145
|
issueReporterItem.values = helpItemValues;
|
|
146
146
|
helpItems.push(issueReporterItem);
|
|
147
147
|
}
|
|
@@ -258,7 +258,7 @@ class HelpItemBase {
|
|
|
258
258
|
if (this.values.length > 1) {
|
|
259
259
|
const actions = await this.getActions();
|
|
260
260
|
if (actions.length) {
|
|
261
|
-
const action = await this.quickInputService.pick(actions, { placeHolder: ( localize(
|
|
261
|
+
const action = await this.quickInputService.pick(actions, { placeHolder: ( localize(10204, "Select url to open")) });
|
|
262
262
|
if (action) {
|
|
263
263
|
await this.takeAction(action.extensionDescription, action.url);
|
|
264
264
|
}
|
|
@@ -319,7 +319,7 @@ class IssueReporterItem extends HelpItemBase {
|
|
|
319
319
|
}
|
|
320
320
|
let HelpPanel = class HelpPanel extends ViewPane {
|
|
321
321
|
static { this.ID = '~remote.helpPanel'; }
|
|
322
|
-
static { this.TITLE = ( localize2(
|
|
322
|
+
static { this.TITLE = ( localize2(10205, "Help and feedback")); }
|
|
323
323
|
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, remoteExplorerService, environmentService, themeService, hoverService, workspaceContextService, walkthroughsService) {
|
|
324
324
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
325
325
|
this.viewModel = viewModel;
|
|
@@ -341,7 +341,7 @@ let HelpPanel = class HelpPanel extends ViewPane {
|
|
|
341
341
|
getAriaLabel: (item) => {
|
|
342
342
|
return item.label;
|
|
343
343
|
},
|
|
344
|
-
getWidgetAriaLabel: () => ( localize(
|
|
344
|
+
getWidgetAriaLabel: () => ( localize(10206, "Remote Help"))
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
const model = this._register(( new HelpModel(
|
|
@@ -470,7 +470,7 @@ let RemoteViewPaneContainer = class RemoteViewPaneContainer extends FilterViewPa
|
|
|
470
470
|
this.remoteExplorerService.targetType = isStringArray(viewDescriptor.remoteAuthority) ? viewDescriptor.remoteAuthority : [viewDescriptor.remoteAuthority];
|
|
471
471
|
}
|
|
472
472
|
getTitle() {
|
|
473
|
-
const title = ( localize(
|
|
473
|
+
const title = ( localize(10207, "Remote Explorer"));
|
|
474
474
|
return title;
|
|
475
475
|
}
|
|
476
476
|
};
|
|
@@ -490,7 +490,7 @@ RemoteViewPaneContainer = ( __decorate([
|
|
|
490
490
|
], RemoteViewPaneContainer));
|
|
491
491
|
( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
492
492
|
id: VIEWLET_ID,
|
|
493
|
-
title: ( localize2(
|
|
493
|
+
title: ( localize2(10207, "Remote Explorer")),
|
|
494
494
|
ctorDescriptor: ( new SyncDescriptor(RemoteViewPaneContainer)),
|
|
495
495
|
hideIfEmpty: true,
|
|
496
496
|
viewOrderDelegate: {
|
|
@@ -596,10 +596,10 @@ class ReconnectionTimer {
|
|
|
596
596
|
}
|
|
597
597
|
const remainingTime = Math.ceil(remainingTimeMs / 1000);
|
|
598
598
|
if (remainingTime === 1) {
|
|
599
|
-
this._parent.report(( localize(
|
|
599
|
+
this._parent.report(( localize(10208, "Attempting to reconnect in {0} second...", remainingTime)));
|
|
600
600
|
}
|
|
601
601
|
else {
|
|
602
|
-
this._parent.report(( localize(
|
|
602
|
+
this._parent.report(( localize(10209, "Attempting to reconnect in {0} seconds...", remainingTime)));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
}
|
|
@@ -648,13 +648,13 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
648
648
|
let lastIncomingDataTime = 0;
|
|
649
649
|
let reconnectionAttempts = 0;
|
|
650
650
|
const reconnectButton = {
|
|
651
|
-
label: ( localize(
|
|
651
|
+
label: ( localize(10210, "Reconnect Now")),
|
|
652
652
|
callback: () => {
|
|
653
653
|
reconnectWaitEvent?.skipWait();
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
const reloadButton = {
|
|
657
|
-
label: ( localize(
|
|
657
|
+
label: ( localize(10211, "Reload Window")),
|
|
658
658
|
callback: () => {
|
|
659
659
|
telemetryService.publicLog2('remoteReconnectionReload', {
|
|
660
660
|
remoteName: getRemoteName(environmentService.remoteAuthority),
|
|
@@ -681,7 +681,7 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
681
681
|
if (!visibleProgress) {
|
|
682
682
|
visibleProgress = showProgress(null, [reconnectButton, reloadButton]);
|
|
683
683
|
}
|
|
684
|
-
visibleProgress.report(( localize(
|
|
684
|
+
visibleProgress.report(( localize(10212, "Connection Lost")));
|
|
685
685
|
}
|
|
686
686
|
break;
|
|
687
687
|
case PersistentConnectionEventType.ReconnectionWait:
|
|
@@ -703,7 +703,7 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
703
703
|
});
|
|
704
704
|
if (visibleProgress || e.millisSinceLastIncomingData > DISCONNECT_PROMPT_TIME) {
|
|
705
705
|
visibleProgress = showProgress(null, [reloadButton]);
|
|
706
|
-
visibleProgress.report(( localize(
|
|
706
|
+
visibleProgress.report(( localize(10213, "Disconnected. Attempting to reconnect...")));
|
|
707
707
|
disposableListener.value = quickInputService.onShow(() => {
|
|
708
708
|
if (visibleProgress && visibleProgress.location === ProgressLocation.Dialog) {
|
|
709
709
|
visibleProgress = showProgress(ProgressLocation.Notification, [reloadButton], visibleProgress.lastReport);
|
|
@@ -731,8 +731,8 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
731
731
|
this._reloadWindowShown = true;
|
|
732
732
|
dialogService.confirm({
|
|
733
733
|
type: Severity.Error,
|
|
734
|
-
message: ( localize(
|
|
735
|
-
primaryButton: ( localize(
|
|
734
|
+
message: ( localize(10214, "Cannot reconnect. Please reload the window.")),
|
|
735
|
+
primaryButton: ( localize(10215, "&&Reload Window"))
|
|
736
736
|
}).then(result => {
|
|
737
737
|
if (result.confirmed) {
|
|
738
738
|
commandService.executeCommand(ReloadWindowAction.ID);
|
|
@@ -44,17 +44,17 @@ let InitialRemoteConnectionHealthContribution = class InitialRemoteConnectionHea
|
|
|
44
44
|
const { result, checkboxChecked } = await this.dialogService.prompt({
|
|
45
45
|
type: Severity.Warning,
|
|
46
46
|
message: ( localize(
|
|
47
|
-
|
|
47
|
+
10216,
|
|
48
48
|
"You are about to connect to an OS version that is unsupported by {0}.",
|
|
49
49
|
this.productService.nameLong
|
|
50
50
|
)),
|
|
51
51
|
buttons: [
|
|
52
52
|
{
|
|
53
|
-
label: ( localize(
|
|
53
|
+
label: ( localize(10217, "&&Allow")),
|
|
54
54
|
run: () => ConnectionChoice.Allow
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
label: ( localize(
|
|
57
|
+
label: ( localize(10218, "&&Learn More")),
|
|
58
58
|
run: async () => { await this.openerService.open('https://aka.ms/vscode-remote/faq/old-linux'); return ConnectionChoice.LearnMore; }
|
|
59
59
|
}
|
|
60
60
|
],
|
|
@@ -62,7 +62,7 @@ let InitialRemoteConnectionHealthContribution = class InitialRemoteConnectionHea
|
|
|
62
62
|
run: () => ConnectionChoice.Cancel
|
|
63
63
|
},
|
|
64
64
|
checkbox: {
|
|
65
|
-
label: ( localize(
|
|
65
|
+
label: ( localize(10219, "Do not show again")),
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
if (result === ConnectionChoice.LearnMore) {
|
|
@@ -88,14 +88,14 @@ let InitialRemoteConnectionHealthContribution = class InitialRemoteConnectionHea
|
|
|
88
88
|
if (shouldShowBanner) {
|
|
89
89
|
const actions = [
|
|
90
90
|
{
|
|
91
|
-
label: ( localize(
|
|
91
|
+
label: ( localize(10220, "Learn More")),
|
|
92
92
|
href: 'https://aka.ms/vscode-remote/faq/old-linux'
|
|
93
93
|
}
|
|
94
94
|
];
|
|
95
95
|
this.bannerService.show({
|
|
96
96
|
id: 'unsupportedGlibcWarning.banner',
|
|
97
97
|
message: ( localize(
|
|
98
|
-
|
|
98
|
+
10221,
|
|
99
99
|
"You are connected to an OS version that is unsupported by {0}.",
|
|
100
100
|
this.productService.nameLong
|
|
101
101
|
)),
|
|
@@ -8,7 +8,7 @@ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
8
8
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
9
9
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
10
10
|
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
11
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
11
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
12
12
|
import { IRemoteAuthorityResolverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAuthorityResolver.service";
|
|
13
13
|
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
14
14
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|