@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common 15.0.0 → 15.0.2
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 +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common",
|
3
|
-
"version": "15.0.
|
3
|
+
"version": "15.0.2",
|
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-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.
|
19
|
-
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "15.0.
|
20
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.
|
21
|
-
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "15.0.
|
22
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.
|
23
|
-
"@codingame/monaco-vscode-api": "15.0.
|
24
|
-
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "15.0.
|
18
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.2",
|
19
|
+
"@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "15.0.2",
|
20
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.2",
|
21
|
+
"@codingame/monaco-vscode-9a1a5840-af83-5d07-a156-ba32a36c5c4b-common": "15.0.2",
|
22
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.2",
|
23
|
+
"@codingame/monaco-vscode-api": "15.0.2",
|
24
|
+
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "15.0.2"
|
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;
|
@@ -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 };
|
@@ -85,7 +85,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
85
85
|
this.tunnelService = tunnelService;
|
86
86
|
this._candidates = ( new Map());
|
87
87
|
this.input = {
|
88
|
-
label: ( localize(
|
88
|
+
label: ( localize(8594, "Add Port")),
|
89
89
|
icon: undefined,
|
90
90
|
tunnelType: TunnelType.Add,
|
91
91
|
hasRunningProcess: false,
|
@@ -103,7 +103,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
103
103
|
privacy: {
|
104
104
|
id: TunnelPrivacyId.Private,
|
105
105
|
themeIcon: privatePortIcon.id,
|
106
|
-
label: ( localize(
|
106
|
+
label: ( localize(8595, "Private"))
|
107
107
|
},
|
108
108
|
strip: () => undefined
|
109
109
|
};
|
@@ -191,8 +191,8 @@ class IconColumn {
|
|
191
191
|
}
|
192
192
|
class PortColumn {
|
193
193
|
constructor() {
|
194
|
-
this.label = ( localize(
|
195
|
-
this.tooltip = ( localize(
|
194
|
+
this.label = ( localize(8596, "Port"));
|
195
|
+
this.tooltip = ( localize(8597, "The label and remote port number of the forwarded port."));
|
196
196
|
this.weight = 1;
|
197
197
|
this.templateId = 'actionbar';
|
198
198
|
}
|
@@ -214,8 +214,8 @@ class PortColumn {
|
|
214
214
|
}
|
215
215
|
class LocalAddressColumn {
|
216
216
|
constructor() {
|
217
|
-
this.label = ( localize(
|
218
|
-
this.tooltip = ( localize(
|
217
|
+
this.label = ( localize(8598, "Forwarded Address"));
|
218
|
+
this.tooltip = ( localize(8599, "The address that the forwarded port is available at."));
|
219
219
|
this.weight = 1;
|
220
220
|
this.templateId = 'actionbar';
|
221
221
|
}
|
@@ -243,18 +243,18 @@ class LocalAddressColumn {
|
|
243
243
|
let clickLabel = '';
|
244
244
|
if (editorConf.multiCursorModifier === 'ctrlCmd') {
|
245
245
|
if (isMacintosh) {
|
246
|
-
clickLabel = ( localize(
|
246
|
+
clickLabel = ( localize(8600, "option + click"));
|
247
247
|
}
|
248
248
|
else {
|
249
|
-
clickLabel = ( localize(
|
249
|
+
clickLabel = ( localize(8601, "alt + click"));
|
250
250
|
}
|
251
251
|
}
|
252
252
|
else {
|
253
253
|
if (isMacintosh) {
|
254
|
-
clickLabel = ( localize(
|
254
|
+
clickLabel = ( localize(8602, "cmd + click"));
|
255
255
|
}
|
256
256
|
else {
|
257
|
-
clickLabel = ( localize(
|
257
|
+
clickLabel = ( localize(8603, "ctrl + click"));
|
258
258
|
}
|
259
259
|
}
|
260
260
|
const markdown = ( new MarkdownString('', true));
|
@@ -265,8 +265,8 @@ class LocalAddressColumn {
|
|
265
265
|
}
|
266
266
|
class RunningProcessColumn {
|
267
267
|
constructor() {
|
268
|
-
this.label = ( localize(
|
269
|
-
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."));
|
270
270
|
this.weight = 2;
|
271
271
|
this.templateId = 'actionbar';
|
272
272
|
}
|
@@ -280,9 +280,9 @@ class RunningProcessColumn {
|
|
280
280
|
}
|
281
281
|
class OriginColumn {
|
282
282
|
constructor() {
|
283
|
-
this.label = ( localize(
|
283
|
+
this.label = ( localize(8606, "Origin"));
|
284
284
|
this.tooltip = ( localize(
|
285
|
-
|
285
|
+
8607,
|
286
286
|
"The source that a forwarded port originates from. Can be an extension, user forwarded, statically forwarded, or automatically forwarded."
|
287
287
|
));
|
288
288
|
this.weight = 1;
|
@@ -299,8 +299,8 @@ class OriginColumn {
|
|
299
299
|
}
|
300
300
|
class PrivacyColumn {
|
301
301
|
constructor() {
|
302
|
-
this.label = ( localize(
|
303
|
-
this.tooltip = ( localize(
|
302
|
+
this.label = ( localize(8608, "Visibility"));
|
303
|
+
this.tooltip = ( localize(8609, "The availability of the forwarded port."));
|
304
304
|
this.weight = 1;
|
305
305
|
this.templateId = 'actionbar';
|
306
306
|
}
|
@@ -460,7 +460,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
460
460
|
container.style.paddingLeft = '5px';
|
461
461
|
const value = editableData.startingValue || '';
|
462
462
|
const inputBox = ( new InputBox(container, this.contextViewService, {
|
463
|
-
ariaLabel: ( localize(
|
463
|
+
ariaLabel: ( localize(8610, "Press Enter to confirm or Escape to cancel.")),
|
464
464
|
validationOptions: {
|
465
465
|
validation: (value) => {
|
466
466
|
const message = editableData.validationMessage(value);
|
@@ -625,7 +625,7 @@ class TunnelItem {
|
|
625
625
|
}
|
626
626
|
}
|
627
627
|
else if (this.hasRunningProcess) {
|
628
|
-
description = ( localize(
|
628
|
+
description = ( localize(8611, "Process information unavailable"));
|
629
629
|
}
|
630
630
|
return description;
|
631
631
|
}
|
@@ -633,7 +633,7 @@ class TunnelItem {
|
|
633
633
|
let information;
|
634
634
|
if (this.localAddress) {
|
635
635
|
information = ( localize(
|
636
|
-
|
636
|
+
8612,
|
637
637
|
"Remote port {0}:{1} forwarded to local address {2}. ",
|
638
638
|
this.remoteHost,
|
639
639
|
this.remotePort,
|
@@ -642,7 +642,7 @@ class TunnelItem {
|
|
642
642
|
}
|
643
643
|
else {
|
644
644
|
information = ( localize(
|
645
|
-
|
645
|
+
8613,
|
646
646
|
"Remote port {0}:{1} not forwarded. ",
|
647
647
|
this.remoteHost,
|
648
648
|
this.remotePort
|
@@ -653,8 +653,8 @@ class TunnelItem {
|
|
653
653
|
get iconTooltip() {
|
654
654
|
const isAdd = this.tunnelType === TunnelType.Add;
|
655
655
|
if (!isAdd) {
|
656
|
-
return `${this.processDescription ? ( localize(
|
657
|
-
( localize(
|
656
|
+
return `${this.processDescription ? ( localize(8614, "Port has running process.")) :
|
657
|
+
( localize(8615, "No running process."))}`;
|
658
658
|
}
|
659
659
|
else {
|
660
660
|
return this.label;
|
@@ -663,7 +663,7 @@ class TunnelItem {
|
|
663
663
|
get portTooltip() {
|
664
664
|
const isAdd = this.tunnelType === TunnelType.Add;
|
665
665
|
if (!isAdd) {
|
666
|
-
return `${this.name ? ( localize(
|
666
|
+
return `${this.name ? ( localize(8616, "Port labeled {0}. ", this.name)) : ''}`;
|
667
667
|
}
|
668
668
|
else {
|
669
669
|
return '';
|
@@ -681,14 +681,14 @@ class TunnelItem {
|
|
681
681
|
{
|
682
682
|
id: '',
|
683
683
|
themeIcon: Codicon.question.id,
|
684
|
-
label: ( localize(
|
684
|
+
label: ( localize(8617, "Unknown"))
|
685
685
|
};
|
686
686
|
}
|
687
687
|
else {
|
688
688
|
return {
|
689
689
|
id: TunnelPrivacyId.Private,
|
690
690
|
themeIcon: privatePortIcon.id,
|
691
|
-
label: ( localize(
|
691
|
+
label: ( localize(8595, "Private"))
|
692
692
|
};
|
693
693
|
}
|
694
694
|
}
|
@@ -698,7 +698,7 @@ const TunnelCloseableContextKey = ( new RawContextKey('tunnelCloseable', false,
|
|
698
698
|
const TunnelPrivacyContextKey = ( new RawContextKey('tunnelPrivacy', undefined, true));
|
699
699
|
const TunnelPrivacyEnabledContextKey = ( new RawContextKey('tunnelPrivacyEnabled', false, true));
|
700
700
|
const TunnelProtocolContextKey = ( new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true));
|
701
|
-
const TunnelViewFocusContextKey = ( new RawContextKey('tunnelViewFocus', false, ( localize(
|
701
|
+
const TunnelViewFocusContextKey = ( new RawContextKey('tunnelViewFocus', false, ( localize(8618, "Whether the Ports view has focus."))));
|
702
702
|
const TunnelViewSelectionKeyName = 'tunnelViewSelection';
|
703
703
|
const TunnelViewSelectionContextKey = ( new RawContextKey(TunnelViewSelectionKeyName, undefined, true));
|
704
704
|
const TunnelViewMultiSelectionKeyName = 'tunnelViewMultiSelection';
|
@@ -708,7 +708,7 @@ const ProtocolChangeableContextKey = ( new RawContextKey('protocolChangable', tr
|
|
708
708
|
let TunnelPanel = class TunnelPanel extends ViewPane {
|
709
709
|
static { TunnelPanel_1 = this; }
|
710
710
|
static { this.ID = TUNNEL_VIEW_ID; }
|
711
|
-
static { this.TITLE = ( localize2(
|
711
|
+
static { this.TITLE = ( localize2(8619, "Ports")); }
|
712
712
|
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, menuService, themeService, remoteExplorerService, hoverService, tunnelService, contextViewService) {
|
713
713
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
714
714
|
this.viewModel = viewModel;
|
@@ -822,7 +822,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
822
822
|
return item.label;
|
823
823
|
}
|
824
824
|
},
|
825
|
-
getWidgetAriaLabel: () => ( localize(
|
825
|
+
getWidgetAriaLabel: () => ( localize(8620, "Tunnel View"))
|
826
826
|
},
|
827
827
|
openOnSingleClick: true
|
828
828
|
});
|
@@ -1036,7 +1036,7 @@ function isITunnelItem(item) {
|
|
1036
1036
|
var LabelTunnelAction;
|
1037
1037
|
(function (LabelTunnelAction) {
|
1038
1038
|
LabelTunnelAction.ID = 'remote.tunnel.label';
|
1039
|
-
LabelTunnelAction.LABEL = ( localize(
|
1039
|
+
LabelTunnelAction.LABEL = ( localize(8621, "Set Port Label"));
|
1040
1040
|
LabelTunnelAction.COMMAND_ID_KEYWORD = 'label';
|
1041
1041
|
function handler() {
|
1042
1042
|
return async (accessor, arg) => {
|
@@ -1068,7 +1068,7 @@ var LabelTunnelAction;
|
|
1068
1068
|
resolve(changed ? { port: tunnelItem.remotePort, label: value } : undefined);
|
1069
1069
|
},
|
1070
1070
|
validationMessage: () => null,
|
1071
|
-
placeholder: ( localize(
|
1071
|
+
placeholder: ( localize(8622, "Port label")),
|
1072
1072
|
startingValue
|
1073
1073
|
});
|
1074
1074
|
}));
|
@@ -1078,18 +1078,18 @@ var LabelTunnelAction;
|
|
1078
1078
|
}
|
1079
1079
|
LabelTunnelAction.handler = handler;
|
1080
1080
|
})(LabelTunnelAction || (LabelTunnelAction = {}));
|
1081
|
-
const invalidPortString = ( localize(
|
1081
|
+
const invalidPortString = ( localize(8623, "Forwarded port should be a number or a host:port."));
|
1082
1082
|
const maxPortNumber = 65536;
|
1083
|
-
const invalidPortNumberString = ( localize(
|
1084
|
-
const requiresSudoString = ( localize(
|
1085
|
-
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"));
|
1086
1086
|
var ForwardPortAction;
|
1087
1087
|
(function (ForwardPortAction) {
|
1088
1088
|
ForwardPortAction.INLINE_ID = 'remote.tunnel.forwardInline';
|
1089
1089
|
ForwardPortAction.COMMANDPALETTE_ID = 'remote.tunnel.forwardCommandPalette';
|
1090
|
-
ForwardPortAction.LABEL = ( localize2(
|
1091
|
-
ForwardPortAction.TREEITEM_LABEL = ( localize(
|
1092
|
-
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)."));
|
1093
1093
|
function validateInput(remoteExplorerService, tunnelService, value, canElevate) {
|
1094
1094
|
const parsed = parseAddress(value);
|
1095
1095
|
if (!parsed) {
|
@@ -1109,14 +1109,14 @@ var ForwardPortAction;
|
|
1109
1109
|
function error(notificationService, tunnelOrError, host, port) {
|
1110
1110
|
if (!tunnelOrError) {
|
1111
1111
|
notificationService.warn(( localize(
|
1112
|
-
|
1112
|
+
8630,
|
1113
1113
|
"Unable to forward {0}:{1}. The host may not be available or that remote port may already be forwarded",
|
1114
1114
|
host,
|
1115
1115
|
port
|
1116
1116
|
)));
|
1117
1117
|
}
|
1118
1118
|
else if (typeof tunnelOrError === 'string') {
|
1119
|
-
notificationService.warn(( localize(
|
1119
|
+
notificationService.warn(( localize(8631, "Unable to forward {0}:{1}. {2}", host, port, tunnelOrError)));
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
1122
|
function inlineHandler() {
|
@@ -1176,7 +1176,7 @@ function makeTunnelPicks(tunnels, remoteExplorerService, tunnelService) {
|
|
1176
1176
|
if (picks.length === 0) {
|
1177
1177
|
picks.push({
|
1178
1178
|
label: ( localize(
|
1179
|
-
|
1179
|
+
8632,
|
1180
1180
|
"No ports currently forwarded. Try running the {0} command",
|
1181
1181
|
ForwardPortAction.LABEL.value
|
1182
1182
|
))
|
@@ -1188,7 +1188,7 @@ var ClosePortAction;
|
|
1188
1188
|
(function (ClosePortAction) {
|
1189
1189
|
ClosePortAction.INLINE_ID = 'remote.tunnel.closeInline';
|
1190
1190
|
ClosePortAction.COMMANDPALETTE_ID = 'remote.tunnel.closeCommandPalette';
|
1191
|
-
ClosePortAction.LABEL = ( localize2(
|
1191
|
+
ClosePortAction.LABEL = ( localize2(8633, "Stop Forwarding Port"));
|
1192
1192
|
function inlineHandler() {
|
1193
1193
|
return async (accessor, arg) => {
|
1194
1194
|
const contextKeyService = accessor.get(IContextKeyService);
|
@@ -1229,7 +1229,7 @@ var ClosePortAction;
|
|
1229
1229
|
const tunnelService = accessor.get(ITunnelService);
|
1230
1230
|
const commandService = accessor.get(ICommandService);
|
1231
1231
|
const picks = makeTunnelPicks(Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).filter(tunnel => tunnel.closeable), remoteExplorerService, tunnelService);
|
1232
|
-
const result = await quickInputService.pick(picks, { placeHolder: ( localize(
|
1232
|
+
const result = await quickInputService.pick(picks, { placeHolder: ( localize(8634, "Choose a port to stop forwarding")) });
|
1233
1233
|
if (result && result.tunnel) {
|
1234
1234
|
await remoteExplorerService.close({ host: result.tunnel.remoteHost, port: result.tunnel.remotePort }, TunnelCloseReason.User);
|
1235
1235
|
}
|
@@ -1243,7 +1243,7 @@ var ClosePortAction;
|
|
1243
1243
|
var OpenPortInBrowserAction;
|
1244
1244
|
(function (OpenPortInBrowserAction) {
|
1245
1245
|
OpenPortInBrowserAction.ID = 'remote.tunnel.open';
|
1246
|
-
OpenPortInBrowserAction.LABEL = ( localize(
|
1246
|
+
OpenPortInBrowserAction.LABEL = ( localize(8635, "Open in Browser"));
|
1247
1247
|
function handler() {
|
1248
1248
|
return async (accessor, arg) => {
|
1249
1249
|
let key;
|
@@ -1273,7 +1273,7 @@ var OpenPortInBrowserAction;
|
|
1273
1273
|
var OpenPortInPreviewAction;
|
1274
1274
|
(function (OpenPortInPreviewAction) {
|
1275
1275
|
OpenPortInPreviewAction.ID = 'remote.tunnel.openPreview';
|
1276
|
-
OpenPortInPreviewAction.LABEL = ( localize(
|
1276
|
+
OpenPortInPreviewAction.LABEL = ( localize(8636, "Preview in Editor"));
|
1277
1277
|
function handler() {
|
1278
1278
|
return async (accessor, arg) => {
|
1279
1279
|
let key;
|
@@ -1310,7 +1310,7 @@ var OpenPortInPreviewAction;
|
|
1310
1310
|
var OpenPortInBrowserCommandPaletteAction;
|
1311
1311
|
(function (OpenPortInBrowserCommandPaletteAction) {
|
1312
1312
|
OpenPortInBrowserCommandPaletteAction.ID = 'remote.tunnel.openCommandPalette';
|
1313
|
-
OpenPortInBrowserCommandPaletteAction.LABEL = ( localize(
|
1313
|
+
OpenPortInBrowserCommandPaletteAction.LABEL = ( localize(8637, "Open Port in Browser"));
|
1314
1314
|
function handler() {
|
1315
1315
|
return async (accessor, arg) => {
|
1316
1316
|
const remoteExplorerService = accessor.get(IRemoteExplorerService);
|
@@ -1329,15 +1329,15 @@ var OpenPortInBrowserCommandPaletteAction;
|
|
1329
1329
|
}));
|
1330
1330
|
if (options.length === 0) {
|
1331
1331
|
options.push({
|
1332
|
-
label: ( localize(
|
1332
|
+
label: ( localize(8638, "No ports currently forwarded. Open the Ports view to get started."))
|
1333
1333
|
});
|
1334
1334
|
}
|
1335
1335
|
else {
|
1336
1336
|
options.push({
|
1337
|
-
label: ( localize(
|
1337
|
+
label: ( localize(8639, "Open the Ports view..."))
|
1338
1338
|
});
|
1339
1339
|
}
|
1340
|
-
const picked = await quickPickService.pick(options, { placeHolder: ( localize(
|
1340
|
+
const picked = await quickPickService.pick(options, { placeHolder: ( localize(8640, "Choose the port to open")) });
|
1341
1341
|
if (picked && picked.tunnel) {
|
1342
1342
|
return OpenPortInBrowserAction.run(model, openerService, makeAddress(picked.tunnel.remoteHost, picked.tunnel.remotePort));
|
1343
1343
|
}
|
@@ -1352,8 +1352,8 @@ var CopyAddressAction;
|
|
1352
1352
|
(function (CopyAddressAction) {
|
1353
1353
|
CopyAddressAction.INLINE_ID = 'remote.tunnel.copyAddressInline';
|
1354
1354
|
CopyAddressAction.COMMANDPALETTE_ID = 'remote.tunnel.copyAddressCommandPalette';
|
1355
|
-
CopyAddressAction.INLINE_LABEL = ( localize(
|
1356
|
-
CopyAddressAction.COMMANDPALETTE_LABEL = ( localize(
|
1355
|
+
CopyAddressAction.INLINE_LABEL = ( localize(8641, "Copy Local Address"));
|
1356
|
+
CopyAddressAction.COMMANDPALETTE_LABEL = ( localize(8642, "Copy Forwarded Port Address"));
|
1357
1357
|
async function copyAddress(remoteExplorerService, clipboardService, tunnelItem) {
|
1358
1358
|
const address = remoteExplorerService.tunnelModel.address(tunnelItem.remoteHost, tunnelItem.remotePort);
|
1359
1359
|
if (address) {
|
@@ -1385,7 +1385,7 @@ var CopyAddressAction;
|
|
1385
1385
|
const commandService = accessor.get(ICommandService);
|
1386
1386
|
const clipboardService = accessor.get(IClipboardService);
|
1387
1387
|
const tunnels = Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).concat(Array.from(( remoteExplorerService.tunnelModel.detected.values())));
|
1388
|
-
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")) });
|
1389
1389
|
if (result && result.tunnel) {
|
1390
1390
|
await copyAddress(remoteExplorerService, clipboardService, result.tunnel);
|
1391
1391
|
}
|
@@ -1399,10 +1399,10 @@ var CopyAddressAction;
|
|
1399
1399
|
var ChangeLocalPortAction;
|
1400
1400
|
(function (ChangeLocalPortAction) {
|
1401
1401
|
ChangeLocalPortAction.ID = 'remote.tunnel.changeLocalPort';
|
1402
|
-
ChangeLocalPortAction.LABEL = ( localize(
|
1402
|
+
ChangeLocalPortAction.LABEL = ( localize(8644, "Change Local Address Port"));
|
1403
1403
|
function validateInput(tunnelService, value, canElevate) {
|
1404
1404
|
if (!value.match(/^[0-9]+$/)) {
|
1405
|
-
return { content: ( localize(
|
1405
|
+
return { content: ( localize(8645, "Local port should be a number.")), severity: Severity.Error };
|
1406
1406
|
}
|
1407
1407
|
else if (Number(value) >= maxPortNumber) {
|
1408
1408
|
return { content: invalidPortNumberString, severity: Severity.Error };
|
@@ -1446,7 +1446,7 @@ var ChangeLocalPortAction;
|
|
1446
1446
|
});
|
1447
1447
|
if (newForward && (typeof newForward !== 'string') && newForward.tunnelLocalPort !== numberValue) {
|
1448
1448
|
notificationService.warn(( localize(
|
1449
|
-
|
1449
|
+
8646,
|
1450
1450
|
"The local port {0} is not available. Port number {1} has been used instead",
|
1451
1451
|
value,
|
1452
1452
|
newForward.tunnelLocalPort ?? newForward.localAddress
|
@@ -1455,7 +1455,7 @@ var ChangeLocalPortAction;
|
|
1455
1455
|
}
|
1456
1456
|
},
|
1457
1457
|
validationMessage: (value) => validateInput(tunnelService, value, tunnelService.canElevate),
|
1458
|
-
placeholder: ( localize(
|
1458
|
+
placeholder: ( localize(8647, "New local port"))
|
1459
1459
|
});
|
1460
1460
|
}
|
1461
1461
|
};
|
@@ -1487,8 +1487,8 @@ var SetTunnelProtocolAction;
|
|
1487
1487
|
(function (SetTunnelProtocolAction) {
|
1488
1488
|
SetTunnelProtocolAction.ID_HTTP = 'remote.tunnel.setProtocolHttp';
|
1489
1489
|
SetTunnelProtocolAction.ID_HTTPS = 'remote.tunnel.setProtocolHttps';
|
1490
|
-
SetTunnelProtocolAction.LABEL_HTTP = ( localize(
|
1491
|
-
SetTunnelProtocolAction.LABEL_HTTPS = ( localize(
|
1490
|
+
SetTunnelProtocolAction.LABEL_HTTP = ( localize(8648, "HTTP"));
|
1491
|
+
SetTunnelProtocolAction.LABEL_HTTPS = ( localize(8649, "HTTPS"));
|
1492
1492
|
async function handler(arg, protocol, remoteExplorerService, environmentService) {
|
1493
1493
|
if (isITunnelItem(arg)) {
|
1494
1494
|
const attributes = {
|
@@ -1635,14 +1635,14 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1635
1635
|
group: '2_localaddress',
|
1636
1636
|
order: 2,
|
1637
1637
|
submenu: MenuId.TunnelPrivacy,
|
1638
|
-
title: ( localize(
|
1638
|
+
title: ( localize(8650, "Port Visibility")),
|
1639
1639
|
when: ( ContextKeyExpr.and(isForwardedExpr, TunnelPrivacyEnabledContextKey))
|
1640
1640
|
}));
|
1641
1641
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
1642
1642
|
group: '2_localaddress',
|
1643
1643
|
order: 3,
|
1644
1644
|
submenu: MenuId.TunnelProtocol,
|
1645
|
-
title: ( localize(
|
1645
|
+
title: ( localize(8651, "Change Port Protocol")),
|
1646
1646
|
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey))
|
1647
1647
|
}));
|
1648
1648
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
@@ -1736,7 +1736,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelLocalAddressInline, ({
|
|
1736
1736
|
when: isForwardedOrDetectedExpr
|
1737
1737
|
}));
|
1738
1738
|
registerColor('ports.iconRunningProcessForeground', STATUS_BAR_REMOTE_ITEM_BACKGROUND, ( localize(
|
1739
|
-
|
1739
|
+
8652,
|
1740
1740
|
"The color of the icon for a port that has an associated running process."
|
1741
1741
|
)));
|
1742
1742
|
|