@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common 14.0.6 → 15.0.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 +8 -8
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +16 -16
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +66 -68
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common",
|
3
|
-
"version": "
|
3
|
+
"version": "15.0.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package (remote-agent, view-common)",
|
6
6
|
"keywords": [],
|
@@ -15,13 +15,13 @@
|
|
15
15
|
},
|
16
16
|
"type": "module",
|
17
17
|
"dependencies": {
|
18
|
-
"@codingame/monaco-vscode-
|
19
|
-
"@codingame/monaco-vscode-
|
20
|
-
"@codingame/monaco-vscode-
|
21
|
-
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "
|
22
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "
|
23
|
-
"@codingame/monaco-vscode-api": "
|
24
|
-
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "
|
18
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.1",
|
19
|
+
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "15.0.1",
|
20
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.1",
|
21
|
+
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "15.0.1",
|
22
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.1",
|
23
|
+
"@codingame/monaco-vscode-api": "15.0.1",
|
24
|
+
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "15.0.1"
|
25
25
|
},
|
26
26
|
"exports": {
|
27
27
|
".": {
|
package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js
CHANGED
@@ -128,15 +128,15 @@ let ExternalUriOpenerService = class ExternalUriOpenerService extends Disposable
|
|
128
128
|
}));
|
129
129
|
items.push({
|
130
130
|
label: isWeb
|
131
|
-
? ( localize(
|
132
|
-
: ( localize(
|
131
|
+
? ( localize(6590, 'Open in new browser window'))
|
132
|
+
: ( localize(6591, 'Open in default browser')),
|
133
133
|
opener: undefined
|
134
134
|
}, { type: 'separator' }, {
|
135
|
-
label: ( localize(
|
135
|
+
label: ( localize(6592, "Configure default opener...")),
|
136
136
|
opener: 'configureDefault'
|
137
137
|
});
|
138
138
|
const picked = await this.quickInputService.pick(items, {
|
139
|
-
placeHolder: ( localize(
|
139
|
+
placeHolder: ( localize(6593, "How would you like to open: {0}", (targetUri.toString())))
|
140
140
|
});
|
141
141
|
if (!picked) {
|
142
142
|
return true;
|
@@ -24,7 +24,7 @@ import { OperatingSystem, isWeb } from '@codingame/monaco-vscode-api/vscode/vs/b
|
|
24
24
|
import { TunnelPrivacyId } from '@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel';
|
25
25
|
import { ITunnelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service';
|
26
26
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
27
|
-
import { ViewPaneContainer } from '@codingame/monaco-vscode-
|
27
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
28
28
|
import { NumberBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity';
|
29
29
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
30
30
|
import { portsViewIcon } from './remoteIcons.js';
|
@@ -54,12 +54,12 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
54
54
|
this.hasPortsInSession = false;
|
55
55
|
this._register(( Registry.as(Extensions.ViewsRegistry)).registerViewWelcomeContent(TUNNEL_VIEW_ID, {
|
56
56
|
content: this.environmentService.remoteAuthority ? ( localize(
|
57
|
-
|
57
|
+
8534,
|
58
58
|
"No forwarded ports. Forward a port to access your running services locally.\n[Forward a Port]({0})",
|
59
59
|
`command:${ForwardPortAction.INLINE_ID}`
|
60
60
|
))
|
61
61
|
: ( localize(
|
62
|
-
|
62
|
+
8535,
|
63
63
|
"No forwarded ports. Forward a port to access your locally running services over the internet.\n[Forward a Port]({0})",
|
64
64
|
`command:${ForwardPortAction.INLINE_ID}`
|
65
65
|
)),
|
@@ -75,7 +75,7 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
75
75
|
async getViewContainer() {
|
76
76
|
return ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
77
77
|
id: TUNNEL_VIEW_CONTAINER_ID,
|
78
|
-
title: ( localize2(
|
78
|
+
title: ( localize2(8536, "Ports")),
|
79
79
|
icon: portsViewIcon,
|
80
80
|
ctorDescriptor: ( new SyncDescriptor(
|
81
81
|
ViewPaneContainer,
|
@@ -132,7 +132,7 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
132
132
|
this.activityBadge.value = this.activityService.showViewActivity(TUNNEL_VIEW_ID, {
|
133
133
|
badge: ( new NumberBadge(
|
134
134
|
this.remoteExplorerService.tunnelModel.forwarded.size,
|
135
|
-
n => n === 1 ? ( localize(
|
135
|
+
n => n === 1 ? ( localize(8537, "1 forwarded port")) : ( localize(8538, "{0} forwarded ports", n))
|
136
136
|
))
|
137
137
|
});
|
138
138
|
}
|
@@ -156,19 +156,19 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
156
156
|
const count = this.remoteExplorerService.tunnelModel.forwarded.size + this.remoteExplorerService.tunnelModel.detected.size;
|
157
157
|
const text = `${count}`;
|
158
158
|
if (count === 0) {
|
159
|
-
tooltip = ( localize(
|
159
|
+
tooltip = ( localize(8539, "No Ports Forwarded"));
|
160
160
|
}
|
161
161
|
else {
|
162
162
|
const allTunnels = Array.from(( this.remoteExplorerService.tunnelModel.forwarded.values()));
|
163
163
|
allTunnels.push(...Array.from(( this.remoteExplorerService.tunnelModel.detected.values())));
|
164
164
|
tooltip = ( localize(
|
165
|
-
|
165
|
+
8540,
|
166
166
|
"Forwarded Ports: {0}",
|
167
167
|
( allTunnels.map(forwarded => forwarded.remotePort)).join(', ')
|
168
168
|
));
|
169
169
|
}
|
170
170
|
return {
|
171
|
-
name: ( localize(
|
171
|
+
name: ( localize(8541, "Forwarded Ports")),
|
172
172
|
text: `$(radio-tower) ${text}`,
|
173
173
|
ariaLabel: tooltip,
|
174
174
|
tooltip,
|
@@ -273,19 +273,19 @@ let AutomaticPortForwarding = class AutomaticPortForwarding extends Disposable {
|
|
273
273
|
await this.configurationService.updateValue(PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID);
|
274
274
|
this.notificationService.notify({
|
275
275
|
message: ( localize(
|
276
|
-
|
276
|
+
8542,
|
277
277
|
"Over 20 ports have been automatically forwarded. The `process` based automatic port forwarding has been switched to `hybrid` in settings. Some ports may no longer be detected."
|
278
278
|
)),
|
279
279
|
severity: Severity.Warning,
|
280
280
|
actions: {
|
281
281
|
primary: [
|
282
|
-
( new Action('switchBack', ( localize(
|
282
|
+
( new Action('switchBack', ( localize(8543, "Undo")), undefined, true, async () => {
|
283
283
|
await this.configurationService.updateValue(PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_PROCESS);
|
284
284
|
await this.configurationService.updateValue(PORT_AUTO_FALLBACK_SETTING, 0, ConfigurationTarget.WORKSPACE);
|
285
285
|
this.portListener?.dispose();
|
286
286
|
this.portListener = undefined;
|
287
287
|
})),
|
288
|
-
( new Action('showPortSourceSetting', ( localize(
|
288
|
+
( new Action('showPortSourceSetting', ( localize(8544, "Show Setting")), undefined, true, async () => {
|
289
289
|
await this.preferencesService.openSettings({
|
290
290
|
query: 'remote.autoForwardPortsSource'
|
291
291
|
});
|
@@ -495,14 +495,14 @@ class OnAutoForwardedAction extends Disposable {
|
|
495
495
|
const properties = await this.remoteExplorerService.tunnelModel.getAttributes([{ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }], false);
|
496
496
|
const label = properties?.get(tunnel.tunnelRemotePort)?.label;
|
497
497
|
return localize(
|
498
|
-
|
498
|
+
8545,
|
499
499
|
"Your application{0} running on port {1} is available. ",
|
500
500
|
label ? ` (${label})` : '',
|
501
501
|
tunnel.tunnelRemotePort
|
502
502
|
);
|
503
503
|
}
|
504
504
|
linkMessage() {
|
505
|
-
return localize(
|
505
|
+
return localize(8546, "[See all forwarded ports]({0})", `command:${TunnelPanel.ID}.focus`);
|
506
506
|
}
|
507
507
|
async showNotification(tunnel) {
|
508
508
|
if (!(await this.hostService.hadLastFocus())) {
|
@@ -516,7 +516,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
516
516
|
}
|
517
517
|
if ((tunnel.tunnelLocalPort !== tunnel.tunnelRemotePort) && this.tunnelService.canElevate && this.tunnelService.isPortPrivileged(tunnel.tunnelRemotePort)) {
|
518
518
|
message += ( localize(
|
519
|
-
|
519
|
+
8547,
|
520
520
|
"You'll need to run as superuser to use port {0} locally. ",
|
521
521
|
tunnel.tunnelRemotePort
|
522
522
|
));
|
@@ -536,7 +536,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
536
536
|
}
|
537
537
|
makePublicChoice(tunnel) {
|
538
538
|
return {
|
539
|
-
label: ( localize(
|
539
|
+
label: ( localize(8548, "Make Public")),
|
540
540
|
run: async () => {
|
541
541
|
const oldTunnelDetails = mapHasAddressLocalhostOrAllInterfaces(this.remoteExplorerService.tunnelModel.forwarded, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
542
542
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
@@ -567,7 +567,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
567
567
|
}
|
568
568
|
elevateChoice(tunnel) {
|
569
569
|
return {
|
570
|
-
label: ( localize(
|
570
|
+
label: ( localize(8549, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
|
571
571
|
run: async () => {
|
572
572
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
573
573
|
const newTunnel = await this.remoteExplorerService.forward({
|
@@ -3,22 +3,22 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
4
4
|
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
5
5
|
|
6
|
-
const getStartedIcon = registerIcon('remote-explorer-get-started', Codicon.star, ( localize(
|
7
|
-
const documentationIcon = registerIcon('remote-explorer-documentation', Codicon.book, ( localize(
|
8
|
-
registerIcon('remote-explorer-feedback', Codicon.twitter, ( localize(
|
9
|
-
const reviewIssuesIcon = registerIcon('remote-explorer-review-issues', Codicon.issues, ( localize(
|
10
|
-
const reportIssuesIcon = registerIcon('remote-explorer-report-issues', Codicon.comment, ( localize(
|
11
|
-
const remoteExplorerViewIcon = registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, ( localize(
|
12
|
-
const portsViewIcon = registerIcon('ports-view-icon', Codicon.plug, ( localize(
|
13
|
-
registerIcon('ports-view-icon', Codicon.plug, ( localize(
|
14
|
-
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, ( localize(
|
15
|
-
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, ( localize(
|
16
|
-
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, ( localize(
|
17
|
-
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, ( localize(
|
18
|
-
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, ( localize(
|
19
|
-
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, ( localize(
|
20
|
-
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, ( localize(
|
21
|
-
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, ( localize(
|
22
|
-
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( localize(
|
6
|
+
const getStartedIcon = registerIcon('remote-explorer-get-started', Codicon.star, ( localize(8550, 'Getting started icon in the remote explorer view.')));
|
7
|
+
const documentationIcon = registerIcon('remote-explorer-documentation', Codicon.book, ( localize(8551, 'Documentation icon in the remote explorer view.')));
|
8
|
+
registerIcon('remote-explorer-feedback', Codicon.twitter, ( localize(8552, 'Feedback icon in the remote explorer view.')));
|
9
|
+
const reviewIssuesIcon = registerIcon('remote-explorer-review-issues', Codicon.issues, ( localize(8553, 'Review issue icon in the remote explorer view.')));
|
10
|
+
const reportIssuesIcon = registerIcon('remote-explorer-report-issues', Codicon.comment, ( localize(8554, 'Report issue icon in the remote explorer view.')));
|
11
|
+
const remoteExplorerViewIcon = registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, ( localize(8555, 'View icon of the remote explorer view.')));
|
12
|
+
const portsViewIcon = registerIcon('ports-view-icon', Codicon.plug, ( localize(8556, 'View icon of the remote ports view.')));
|
13
|
+
registerIcon('ports-view-icon', Codicon.plug, ( localize(8557, 'Icon representing a remote port.')));
|
14
|
+
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, ( localize(8558, 'Icon representing a private remote port.')));
|
15
|
+
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, ( localize(8559, 'Icon for the forward action.')));
|
16
|
+
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, ( localize(8560, 'Icon for the stop forwarding action.')));
|
17
|
+
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, ( localize(8561, 'Icon for the open browser action.')));
|
18
|
+
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, ( localize(8562, 'Icon for the open preview action.')));
|
19
|
+
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, ( localize(8563, 'Icon for the copy local address action.')));
|
20
|
+
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, ( localize(8564, 'Icon for the label port action.')));
|
21
|
+
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, ( localize(8565, 'Icon for forwarded ports that don\'t have a running process.')));
|
22
|
+
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( localize(8566, 'Icon for forwarded ports that do have a running process.')));
|
23
23
|
|
24
24
|
export { copyAddressIcon, documentationIcon, forwardPortIcon, forwardedPortWithProcessIcon, forwardedPortWithoutProcessIcon, getStartedIcon, labelPortIcon, openBrowserIcon, openPreviewIcon, portsViewIcon, privatePortIcon, remoteExplorerViewIcon, reportIssuesIcon, reviewIssuesIcon, stopForwardIcon };
|
@@ -25,7 +25,6 @@ import { TunnelPrivacyId, TunnelProtocol } from "@codingame/monaco-vscode-api/vs
|
|
25
25
|
import { ITunnelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service";
|
26
26
|
import { TunnelPrivacy } from "@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAuthorityResolver";
|
27
27
|
import { SyncDescriptor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors";
|
28
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
29
28
|
import { IExternalUriOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service";
|
30
29
|
import { Tunnel, TunnelModel, TunnelSource } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/tunnelModel";
|
31
30
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
@@ -137,7 +136,7 @@ export declare class TunnelPanel extends ViewPane {
|
|
137
136
|
private isEditing;
|
138
137
|
private titleActions;
|
139
138
|
private lastFocus;
|
140
|
-
constructor(viewModel: ITunnelViewModel, options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, openerService: IOpenerService, quickInputService: IQuickInputService, commandService: ICommandService, menuService: IMenuService, themeService: IThemeService, remoteExplorerService: IRemoteExplorerService,
|
139
|
+
constructor(viewModel: ITunnelViewModel, options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, configurationService: IConfigurationService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, openerService: IOpenerService, quickInputService: IQuickInputService, commandService: ICommandService, menuService: IMenuService, themeService: IThemeService, remoteExplorerService: IRemoteExplorerService, hoverService: IHoverService, tunnelService: ITunnelService, contextViewService: IContextViewService);
|
141
140
|
private registerPrivacyActions;
|
142
141
|
get portCount(): number;
|
143
142
|
private createTable;
|
@@ -41,7 +41,6 @@ import { TunnelPrivacyId, TunnelProtocol, isLocalhost, isAllInterfaces } from '@
|
|
41
41
|
import { ITunnelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service';
|
42
42
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
43
43
|
import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
44
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
45
44
|
import { ActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
46
45
|
import { privatePortIcon, forwardedPortWithProcessIcon, forwardedPortWithoutProcessIcon, portsViewIcon, labelPortIcon, forwardPortIcon, stopForwardIcon, copyAddressIcon, openBrowserIcon, openPreviewIcon } from './remoteIcons.js';
|
47
46
|
import { IExternalUriOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service';
|
@@ -86,7 +85,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
86
85
|
this.tunnelService = tunnelService;
|
87
86
|
this._candidates = ( new Map());
|
88
87
|
this.input = {
|
89
|
-
label: ( localize(
|
88
|
+
label: ( localize(8594, "Add Port")),
|
90
89
|
icon: undefined,
|
91
90
|
tunnelType: TunnelType.Add,
|
92
91
|
hasRunningProcess: false,
|
@@ -104,7 +103,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
104
103
|
privacy: {
|
105
104
|
id: TunnelPrivacyId.Private,
|
106
105
|
themeIcon: privatePortIcon.id,
|
107
|
-
label: ( localize(
|
106
|
+
label: ( localize(8595, "Private"))
|
108
107
|
},
|
109
108
|
strip: () => undefined
|
110
109
|
};
|
@@ -192,8 +191,8 @@ class IconColumn {
|
|
192
191
|
}
|
193
192
|
class PortColumn {
|
194
193
|
constructor() {
|
195
|
-
this.label = ( localize(
|
196
|
-
this.tooltip = ( localize(
|
194
|
+
this.label = ( localize(8596, "Port"));
|
195
|
+
this.tooltip = ( localize(8597, "The label and remote port number of the forwarded port."));
|
197
196
|
this.weight = 1;
|
198
197
|
this.templateId = 'actionbar';
|
199
198
|
}
|
@@ -215,8 +214,8 @@ class PortColumn {
|
|
215
214
|
}
|
216
215
|
class LocalAddressColumn {
|
217
216
|
constructor() {
|
218
|
-
this.label = ( localize(
|
219
|
-
this.tooltip = ( localize(
|
217
|
+
this.label = ( localize(8598, "Forwarded Address"));
|
218
|
+
this.tooltip = ( localize(8599, "The address that the forwarded port is available at."));
|
220
219
|
this.weight = 1;
|
221
220
|
this.templateId = 'actionbar';
|
222
221
|
}
|
@@ -244,18 +243,18 @@ class LocalAddressColumn {
|
|
244
243
|
let clickLabel = '';
|
245
244
|
if (editorConf.multiCursorModifier === 'ctrlCmd') {
|
246
245
|
if (isMacintosh) {
|
247
|
-
clickLabel = ( localize(
|
246
|
+
clickLabel = ( localize(8600, "option + click"));
|
248
247
|
}
|
249
248
|
else {
|
250
|
-
clickLabel = ( localize(
|
249
|
+
clickLabel = ( localize(8601, "alt + click"));
|
251
250
|
}
|
252
251
|
}
|
253
252
|
else {
|
254
253
|
if (isMacintosh) {
|
255
|
-
clickLabel = ( localize(
|
254
|
+
clickLabel = ( localize(8602, "cmd + click"));
|
256
255
|
}
|
257
256
|
else {
|
258
|
-
clickLabel = ( localize(
|
257
|
+
clickLabel = ( localize(8603, "ctrl + click"));
|
259
258
|
}
|
260
259
|
}
|
261
260
|
const markdown = ( new MarkdownString('', true));
|
@@ -266,8 +265,8 @@ class LocalAddressColumn {
|
|
266
265
|
}
|
267
266
|
class RunningProcessColumn {
|
268
267
|
constructor() {
|
269
|
-
this.label = ( localize(
|
270
|
-
this.tooltip = ( localize(
|
268
|
+
this.label = ( localize(8604, "Running Process"));
|
269
|
+
this.tooltip = ( localize(8605, "The command line of the process that is using the port."));
|
271
270
|
this.weight = 2;
|
272
271
|
this.templateId = 'actionbar';
|
273
272
|
}
|
@@ -281,9 +280,9 @@ class RunningProcessColumn {
|
|
281
280
|
}
|
282
281
|
class OriginColumn {
|
283
282
|
constructor() {
|
284
|
-
this.label = ( localize(
|
283
|
+
this.label = ( localize(8606, "Origin"));
|
285
284
|
this.tooltip = ( localize(
|
286
|
-
|
285
|
+
8607,
|
287
286
|
"The source that a forwarded port originates from. Can be an extension, user forwarded, statically forwarded, or automatically forwarded."
|
288
287
|
));
|
289
288
|
this.weight = 1;
|
@@ -300,8 +299,8 @@ class OriginColumn {
|
|
300
299
|
}
|
301
300
|
class PrivacyColumn {
|
302
301
|
constructor() {
|
303
|
-
this.label = ( localize(
|
304
|
-
this.tooltip = ( localize(
|
302
|
+
this.label = ( localize(8608, "Visibility"));
|
303
|
+
this.tooltip = ( localize(8609, "The availability of the forwarded port."));
|
305
304
|
this.weight = 1;
|
306
305
|
this.templateId = 'actionbar';
|
307
306
|
}
|
@@ -461,7 +460,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
461
460
|
container.style.paddingLeft = '5px';
|
462
461
|
const value = editableData.startingValue || '';
|
463
462
|
const inputBox = ( new InputBox(container, this.contextViewService, {
|
464
|
-
ariaLabel: ( localize(
|
463
|
+
ariaLabel: ( localize(8610, "Press Enter to confirm or Escape to cancel.")),
|
465
464
|
validationOptions: {
|
466
465
|
validation: (value) => {
|
467
466
|
const message = editableData.validationMessage(value);
|
@@ -626,7 +625,7 @@ class TunnelItem {
|
|
626
625
|
}
|
627
626
|
}
|
628
627
|
else if (this.hasRunningProcess) {
|
629
|
-
description = ( localize(
|
628
|
+
description = ( localize(8611, "Process information unavailable"));
|
630
629
|
}
|
631
630
|
return description;
|
632
631
|
}
|
@@ -634,7 +633,7 @@ class TunnelItem {
|
|
634
633
|
let information;
|
635
634
|
if (this.localAddress) {
|
636
635
|
information = ( localize(
|
637
|
-
|
636
|
+
8612,
|
638
637
|
"Remote port {0}:{1} forwarded to local address {2}. ",
|
639
638
|
this.remoteHost,
|
640
639
|
this.remotePort,
|
@@ -643,7 +642,7 @@ class TunnelItem {
|
|
643
642
|
}
|
644
643
|
else {
|
645
644
|
information = ( localize(
|
646
|
-
|
645
|
+
8613,
|
647
646
|
"Remote port {0}:{1} not forwarded. ",
|
648
647
|
this.remoteHost,
|
649
648
|
this.remotePort
|
@@ -654,8 +653,8 @@ class TunnelItem {
|
|
654
653
|
get iconTooltip() {
|
655
654
|
const isAdd = this.tunnelType === TunnelType.Add;
|
656
655
|
if (!isAdd) {
|
657
|
-
return `${this.processDescription ? ( localize(
|
658
|
-
( localize(
|
656
|
+
return `${this.processDescription ? ( localize(8614, "Port has running process.")) :
|
657
|
+
( localize(8615, "No running process."))}`;
|
659
658
|
}
|
660
659
|
else {
|
661
660
|
return this.label;
|
@@ -664,7 +663,7 @@ class TunnelItem {
|
|
664
663
|
get portTooltip() {
|
665
664
|
const isAdd = this.tunnelType === TunnelType.Add;
|
666
665
|
if (!isAdd) {
|
667
|
-
return `${this.name ? ( localize(
|
666
|
+
return `${this.name ? ( localize(8616, "Port labeled {0}. ", this.name)) : ''}`;
|
668
667
|
}
|
669
668
|
else {
|
670
669
|
return '';
|
@@ -682,14 +681,14 @@ class TunnelItem {
|
|
682
681
|
{
|
683
682
|
id: '',
|
684
683
|
themeIcon: Codicon.question.id,
|
685
|
-
label: ( localize(
|
684
|
+
label: ( localize(8617, "Unknown"))
|
686
685
|
};
|
687
686
|
}
|
688
687
|
else {
|
689
688
|
return {
|
690
689
|
id: TunnelPrivacyId.Private,
|
691
690
|
themeIcon: privatePortIcon.id,
|
692
|
-
label: ( localize(
|
691
|
+
label: ( localize(8595, "Private"))
|
693
692
|
};
|
694
693
|
}
|
695
694
|
}
|
@@ -699,7 +698,7 @@ const TunnelCloseableContextKey = ( new RawContextKey('tunnelCloseable', false,
|
|
699
698
|
const TunnelPrivacyContextKey = ( new RawContextKey('tunnelPrivacy', undefined, true));
|
700
699
|
const TunnelPrivacyEnabledContextKey = ( new RawContextKey('tunnelPrivacyEnabled', false, true));
|
701
700
|
const TunnelProtocolContextKey = ( new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true));
|
702
|
-
const TunnelViewFocusContextKey = ( new RawContextKey('tunnelViewFocus', false, ( localize(
|
701
|
+
const TunnelViewFocusContextKey = ( new RawContextKey('tunnelViewFocus', false, ( localize(8618, "Whether the Ports view has focus."))));
|
703
702
|
const TunnelViewSelectionKeyName = 'tunnelViewSelection';
|
704
703
|
const TunnelViewSelectionContextKey = ( new RawContextKey(TunnelViewSelectionKeyName, undefined, true));
|
705
704
|
const TunnelViewMultiSelectionKeyName = 'tunnelViewMultiSelection';
|
@@ -709,9 +708,9 @@ const ProtocolChangeableContextKey = ( new RawContextKey('protocolChangable', tr
|
|
709
708
|
let TunnelPanel = class TunnelPanel extends ViewPane {
|
710
709
|
static { TunnelPanel_1 = this; }
|
711
710
|
static { this.ID = TUNNEL_VIEW_ID; }
|
712
|
-
static { this.TITLE = ( localize2(
|
713
|
-
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, menuService, themeService, remoteExplorerService,
|
714
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService,
|
711
|
+
static { this.TITLE = ( localize2(8619, "Ports")); }
|
712
|
+
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, menuService, themeService, remoteExplorerService, hoverService, tunnelService, contextViewService) {
|
713
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
715
714
|
this.viewModel = viewModel;
|
716
715
|
this.quickInputService = quickInputService;
|
717
716
|
this.commandService = commandService;
|
@@ -823,11 +822,11 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
823
822
|
return item.label;
|
824
823
|
}
|
825
824
|
},
|
826
|
-
getWidgetAriaLabel: () => ( localize(
|
825
|
+
getWidgetAriaLabel: () => ( localize(8620, "Tunnel View"))
|
827
826
|
},
|
828
827
|
openOnSingleClick: true
|
829
828
|
});
|
830
|
-
const actionRunner = ( new ActionRunner());
|
829
|
+
const actionRunner = this.tableDisposables.add(( new ActionRunner()));
|
831
830
|
actionBarRenderer.actionRunner = actionRunner;
|
832
831
|
this.tableDisposables.add(this.table);
|
833
832
|
this.tableDisposables.add(this.table.onContextMenu(e => this.onContextMenu(e, actionRunner)));
|
@@ -1013,10 +1012,9 @@ TunnelPanel = TunnelPanel_1 = ( __decorate([
|
|
1013
1012
|
( __param(11, IMenuService)),
|
1014
1013
|
( __param(12, IThemeService)),
|
1015
1014
|
( __param(13, IRemoteExplorerService)),
|
1016
|
-
( __param(14,
|
1017
|
-
( __param(15,
|
1018
|
-
( __param(16,
|
1019
|
-
( __param(17, IContextViewService))
|
1015
|
+
( __param(14, IHoverService)),
|
1016
|
+
( __param(15, ITunnelService)),
|
1017
|
+
( __param(16, IContextViewService))
|
1020
1018
|
], TunnelPanel));
|
1021
1019
|
class TunnelPanelDescriptor {
|
1022
1020
|
constructor(viewModel, environmentService) {
|
@@ -1038,7 +1036,7 @@ function isITunnelItem(item) {
|
|
1038
1036
|
var LabelTunnelAction;
|
1039
1037
|
(function (LabelTunnelAction) {
|
1040
1038
|
LabelTunnelAction.ID = 'remote.tunnel.label';
|
1041
|
-
LabelTunnelAction.LABEL = ( localize(
|
1039
|
+
LabelTunnelAction.LABEL = ( localize(8621, "Set Port Label"));
|
1042
1040
|
LabelTunnelAction.COMMAND_ID_KEYWORD = 'label';
|
1043
1041
|
function handler() {
|
1044
1042
|
return async (accessor, arg) => {
|
@@ -1070,7 +1068,7 @@ var LabelTunnelAction;
|
|
1070
1068
|
resolve(changed ? { port: tunnelItem.remotePort, label: value } : undefined);
|
1071
1069
|
},
|
1072
1070
|
validationMessage: () => null,
|
1073
|
-
placeholder: ( localize(
|
1071
|
+
placeholder: ( localize(8622, "Port label")),
|
1074
1072
|
startingValue
|
1075
1073
|
});
|
1076
1074
|
}));
|
@@ -1080,18 +1078,18 @@ var LabelTunnelAction;
|
|
1080
1078
|
}
|
1081
1079
|
LabelTunnelAction.handler = handler;
|
1082
1080
|
})(LabelTunnelAction || (LabelTunnelAction = {}));
|
1083
|
-
const invalidPortString = ( localize(
|
1081
|
+
const invalidPortString = ( localize(8623, "Forwarded port should be a number or a host:port."));
|
1084
1082
|
const maxPortNumber = 65536;
|
1085
|
-
const invalidPortNumberString = ( localize(
|
1086
|
-
const requiresSudoString = ( localize(
|
1087
|
-
const alreadyForwarded = ( localize(
|
1083
|
+
const invalidPortNumberString = ( localize(8624, "Port number must be \u2265 0 and < {0}.", maxPortNumber));
|
1084
|
+
const requiresSudoString = ( localize(8625, "May Require Sudo"));
|
1085
|
+
const alreadyForwarded = ( localize(8626, "Port is already forwarded"));
|
1088
1086
|
var ForwardPortAction;
|
1089
1087
|
(function (ForwardPortAction) {
|
1090
1088
|
ForwardPortAction.INLINE_ID = 'remote.tunnel.forwardInline';
|
1091
1089
|
ForwardPortAction.COMMANDPALETTE_ID = 'remote.tunnel.forwardCommandPalette';
|
1092
|
-
ForwardPortAction.LABEL = ( localize2(
|
1093
|
-
ForwardPortAction.TREEITEM_LABEL = ( localize(
|
1094
|
-
const forwardPrompt = ( localize(
|
1090
|
+
ForwardPortAction.LABEL = ( localize2(8627, "Forward a Port"));
|
1091
|
+
ForwardPortAction.TREEITEM_LABEL = ( localize(8628, "Forward Port"));
|
1092
|
+
const forwardPrompt = ( localize(8629, "Port number or address (eg. 3000 or 10.10.10.10:2000)."));
|
1095
1093
|
function validateInput(remoteExplorerService, tunnelService, value, canElevate) {
|
1096
1094
|
const parsed = parseAddress(value);
|
1097
1095
|
if (!parsed) {
|
@@ -1111,14 +1109,14 @@ var ForwardPortAction;
|
|
1111
1109
|
function error(notificationService, tunnelOrError, host, port) {
|
1112
1110
|
if (!tunnelOrError) {
|
1113
1111
|
notificationService.warn(( localize(
|
1114
|
-
|
1112
|
+
8630,
|
1115
1113
|
"Unable to forward {0}:{1}. The host may not be available or that remote port may already be forwarded",
|
1116
1114
|
host,
|
1117
1115
|
port
|
1118
1116
|
)));
|
1119
1117
|
}
|
1120
1118
|
else if (typeof tunnelOrError === 'string') {
|
1121
|
-
notificationService.warn(( localize(
|
1119
|
+
notificationService.warn(( localize(8631, "Unable to forward {0}:{1}. {2}", host, port, tunnelOrError)));
|
1122
1120
|
}
|
1123
1121
|
}
|
1124
1122
|
function inlineHandler() {
|
@@ -1178,7 +1176,7 @@ function makeTunnelPicks(tunnels, remoteExplorerService, tunnelService) {
|
|
1178
1176
|
if (picks.length === 0) {
|
1179
1177
|
picks.push({
|
1180
1178
|
label: ( localize(
|
1181
|
-
|
1179
|
+
8632,
|
1182
1180
|
"No ports currently forwarded. Try running the {0} command",
|
1183
1181
|
ForwardPortAction.LABEL.value
|
1184
1182
|
))
|
@@ -1190,7 +1188,7 @@ var ClosePortAction;
|
|
1190
1188
|
(function (ClosePortAction) {
|
1191
1189
|
ClosePortAction.INLINE_ID = 'remote.tunnel.closeInline';
|
1192
1190
|
ClosePortAction.COMMANDPALETTE_ID = 'remote.tunnel.closeCommandPalette';
|
1193
|
-
ClosePortAction.LABEL = ( localize2(
|
1191
|
+
ClosePortAction.LABEL = ( localize2(8633, "Stop Forwarding Port"));
|
1194
1192
|
function inlineHandler() {
|
1195
1193
|
return async (accessor, arg) => {
|
1196
1194
|
const contextKeyService = accessor.get(IContextKeyService);
|
@@ -1231,7 +1229,7 @@ var ClosePortAction;
|
|
1231
1229
|
const tunnelService = accessor.get(ITunnelService);
|
1232
1230
|
const commandService = accessor.get(ICommandService);
|
1233
1231
|
const picks = makeTunnelPicks(Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).filter(tunnel => tunnel.closeable), remoteExplorerService, tunnelService);
|
1234
|
-
const result = await quickInputService.pick(picks, { placeHolder: ( localize(
|
1232
|
+
const result = await quickInputService.pick(picks, { placeHolder: ( localize(8634, "Choose a port to stop forwarding")) });
|
1235
1233
|
if (result && result.tunnel) {
|
1236
1234
|
await remoteExplorerService.close({ host: result.tunnel.remoteHost, port: result.tunnel.remotePort }, TunnelCloseReason.User);
|
1237
1235
|
}
|
@@ -1245,7 +1243,7 @@ var ClosePortAction;
|
|
1245
1243
|
var OpenPortInBrowserAction;
|
1246
1244
|
(function (OpenPortInBrowserAction) {
|
1247
1245
|
OpenPortInBrowserAction.ID = 'remote.tunnel.open';
|
1248
|
-
OpenPortInBrowserAction.LABEL = ( localize(
|
1246
|
+
OpenPortInBrowserAction.LABEL = ( localize(8635, "Open in Browser"));
|
1249
1247
|
function handler() {
|
1250
1248
|
return async (accessor, arg) => {
|
1251
1249
|
let key;
|
@@ -1275,7 +1273,7 @@ var OpenPortInBrowserAction;
|
|
1275
1273
|
var OpenPortInPreviewAction;
|
1276
1274
|
(function (OpenPortInPreviewAction) {
|
1277
1275
|
OpenPortInPreviewAction.ID = 'remote.tunnel.openPreview';
|
1278
|
-
OpenPortInPreviewAction.LABEL = ( localize(
|
1276
|
+
OpenPortInPreviewAction.LABEL = ( localize(8636, "Preview in Editor"));
|
1279
1277
|
function handler() {
|
1280
1278
|
return async (accessor, arg) => {
|
1281
1279
|
let key;
|
@@ -1312,7 +1310,7 @@ var OpenPortInPreviewAction;
|
|
1312
1310
|
var OpenPortInBrowserCommandPaletteAction;
|
1313
1311
|
(function (OpenPortInBrowserCommandPaletteAction) {
|
1314
1312
|
OpenPortInBrowserCommandPaletteAction.ID = 'remote.tunnel.openCommandPalette';
|
1315
|
-
OpenPortInBrowserCommandPaletteAction.LABEL = ( localize(
|
1313
|
+
OpenPortInBrowserCommandPaletteAction.LABEL = ( localize(8637, "Open Port in Browser"));
|
1316
1314
|
function handler() {
|
1317
1315
|
return async (accessor, arg) => {
|
1318
1316
|
const remoteExplorerService = accessor.get(IRemoteExplorerService);
|
@@ -1331,15 +1329,15 @@ var OpenPortInBrowserCommandPaletteAction;
|
|
1331
1329
|
}));
|
1332
1330
|
if (options.length === 0) {
|
1333
1331
|
options.push({
|
1334
|
-
label: ( localize(
|
1332
|
+
label: ( localize(8638, "No ports currently forwarded. Open the Ports view to get started."))
|
1335
1333
|
});
|
1336
1334
|
}
|
1337
1335
|
else {
|
1338
1336
|
options.push({
|
1339
|
-
label: ( localize(
|
1337
|
+
label: ( localize(8639, "Open the Ports view..."))
|
1340
1338
|
});
|
1341
1339
|
}
|
1342
|
-
const picked = await quickPickService.pick(options, { placeHolder: ( localize(
|
1340
|
+
const picked = await quickPickService.pick(options, { placeHolder: ( localize(8640, "Choose the port to open")) });
|
1343
1341
|
if (picked && picked.tunnel) {
|
1344
1342
|
return OpenPortInBrowserAction.run(model, openerService, makeAddress(picked.tunnel.remoteHost, picked.tunnel.remotePort));
|
1345
1343
|
}
|
@@ -1354,8 +1352,8 @@ var CopyAddressAction;
|
|
1354
1352
|
(function (CopyAddressAction) {
|
1355
1353
|
CopyAddressAction.INLINE_ID = 'remote.tunnel.copyAddressInline';
|
1356
1354
|
CopyAddressAction.COMMANDPALETTE_ID = 'remote.tunnel.copyAddressCommandPalette';
|
1357
|
-
CopyAddressAction.INLINE_LABEL = ( localize(
|
1358
|
-
CopyAddressAction.COMMANDPALETTE_LABEL = ( localize(
|
1355
|
+
CopyAddressAction.INLINE_LABEL = ( localize(8641, "Copy Local Address"));
|
1356
|
+
CopyAddressAction.COMMANDPALETTE_LABEL = ( localize(8642, "Copy Forwarded Port Address"));
|
1359
1357
|
async function copyAddress(remoteExplorerService, clipboardService, tunnelItem) {
|
1360
1358
|
const address = remoteExplorerService.tunnelModel.address(tunnelItem.remoteHost, tunnelItem.remotePort);
|
1361
1359
|
if (address) {
|
@@ -1387,7 +1385,7 @@ var CopyAddressAction;
|
|
1387
1385
|
const commandService = accessor.get(ICommandService);
|
1388
1386
|
const clipboardService = accessor.get(IClipboardService);
|
1389
1387
|
const tunnels = Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).concat(Array.from(( remoteExplorerService.tunnelModel.detected.values())));
|
1390
|
-
const result = await quickInputService.pick(makeTunnelPicks(tunnels, remoteExplorerService, tunnelService), { placeHolder: ( localize(
|
1388
|
+
const result = await quickInputService.pick(makeTunnelPicks(tunnels, remoteExplorerService, tunnelService), { placeHolder: ( localize(8643, "Choose a forwarded port")) });
|
1391
1389
|
if (result && result.tunnel) {
|
1392
1390
|
await copyAddress(remoteExplorerService, clipboardService, result.tunnel);
|
1393
1391
|
}
|
@@ -1401,10 +1399,10 @@ var CopyAddressAction;
|
|
1401
1399
|
var ChangeLocalPortAction;
|
1402
1400
|
(function (ChangeLocalPortAction) {
|
1403
1401
|
ChangeLocalPortAction.ID = 'remote.tunnel.changeLocalPort';
|
1404
|
-
ChangeLocalPortAction.LABEL = ( localize(
|
1402
|
+
ChangeLocalPortAction.LABEL = ( localize(8644, "Change Local Address Port"));
|
1405
1403
|
function validateInput(tunnelService, value, canElevate) {
|
1406
1404
|
if (!value.match(/^[0-9]+$/)) {
|
1407
|
-
return { content: ( localize(
|
1405
|
+
return { content: ( localize(8645, "Local port should be a number.")), severity: Severity.Error };
|
1408
1406
|
}
|
1409
1407
|
else if (Number(value) >= maxPortNumber) {
|
1410
1408
|
return { content: invalidPortNumberString, severity: Severity.Error };
|
@@ -1448,7 +1446,7 @@ var ChangeLocalPortAction;
|
|
1448
1446
|
});
|
1449
1447
|
if (newForward && (typeof newForward !== 'string') && newForward.tunnelLocalPort !== numberValue) {
|
1450
1448
|
notificationService.warn(( localize(
|
1451
|
-
|
1449
|
+
8646,
|
1452
1450
|
"The local port {0} is not available. Port number {1} has been used instead",
|
1453
1451
|
value,
|
1454
1452
|
newForward.tunnelLocalPort ?? newForward.localAddress
|
@@ -1457,7 +1455,7 @@ var ChangeLocalPortAction;
|
|
1457
1455
|
}
|
1458
1456
|
},
|
1459
1457
|
validationMessage: (value) => validateInput(tunnelService, value, tunnelService.canElevate),
|
1460
|
-
placeholder: ( localize(
|
1458
|
+
placeholder: ( localize(8647, "New local port"))
|
1461
1459
|
});
|
1462
1460
|
}
|
1463
1461
|
};
|
@@ -1489,8 +1487,8 @@ var SetTunnelProtocolAction;
|
|
1489
1487
|
(function (SetTunnelProtocolAction) {
|
1490
1488
|
SetTunnelProtocolAction.ID_HTTP = 'remote.tunnel.setProtocolHttp';
|
1491
1489
|
SetTunnelProtocolAction.ID_HTTPS = 'remote.tunnel.setProtocolHttps';
|
1492
|
-
SetTunnelProtocolAction.LABEL_HTTP = ( localize(
|
1493
|
-
SetTunnelProtocolAction.LABEL_HTTPS = ( localize(
|
1490
|
+
SetTunnelProtocolAction.LABEL_HTTP = ( localize(8648, "HTTP"));
|
1491
|
+
SetTunnelProtocolAction.LABEL_HTTPS = ( localize(8649, "HTTPS"));
|
1494
1492
|
async function handler(arg, protocol, remoteExplorerService, environmentService) {
|
1495
1493
|
if (isITunnelItem(arg)) {
|
1496
1494
|
const attributes = {
|
@@ -1637,14 +1635,14 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1637
1635
|
group: '2_localaddress',
|
1638
1636
|
order: 2,
|
1639
1637
|
submenu: MenuId.TunnelPrivacy,
|
1640
|
-
title: ( localize(
|
1638
|
+
title: ( localize(8650, "Port Visibility")),
|
1641
1639
|
when: ( ContextKeyExpr.and(isForwardedExpr, TunnelPrivacyEnabledContextKey))
|
1642
1640
|
}));
|
1643
1641
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
1644
1642
|
group: '2_localaddress',
|
1645
1643
|
order: 3,
|
1646
1644
|
submenu: MenuId.TunnelProtocol,
|
1647
|
-
title: ( localize(
|
1645
|
+
title: ( localize(8651, "Change Port Protocol")),
|
1648
1646
|
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey))
|
1649
1647
|
}));
|
1650
1648
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
@@ -1738,7 +1736,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelLocalAddressInline, ({
|
|
1738
1736
|
when: isForwardedOrDetectedExpr
|
1739
1737
|
}));
|
1740
1738
|
registerColor('ports.iconRunningProcessForeground', STATUS_BAR_REMOTE_ITEM_BACKGROUND, ( localize(
|
1741
|
-
|
1739
|
+
8652,
|
1742
1740
|
"The color of the icon for a port that has an associated running process."
|
1743
1741
|
)));
|
1744
1742
|
|