@codingame/monaco-vscode-remote-agent-service-override 13.0.0 → 13.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 +1 -1
- package/package.json +12 -20
- package/vscode/src/vs/workbench/contrib/remote/browser/explorerViewItems.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remote.js +17 -17
- 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 +26 -26
- 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 +46 -46
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +3 -3
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { RemoteAuthorityResolverService } from './vscode/src/vs/platform/remote/
|
|
|
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
13
|
import '@codingame/monaco-vscode-abed5a84-8a82-5f84-9412-88a736235bae-common/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
14
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
14
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.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,25 +15,17 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "13.
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-abed5a84-8a82-5f84-9412-88a736235bae-common": "13.
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"@codingame/monaco-vscode-api": "13.0.0",
|
|
31
|
-
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "13.0.0"
|
|
32
|
-
},
|
|
33
|
-
"peerDependenciesMeta": {
|
|
34
|
-
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": {
|
|
35
|
-
"optional": true
|
|
36
|
-
}
|
|
18
|
+
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-55ed5668-e8ca-5335-a587-790bcf1200c0-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common": "13.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-abed5a84-8a82-5f84-9412-88a736235bae-common": "13.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "13.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-environment-service-override": "13.1.0"
|
|
37
29
|
},
|
|
38
30
|
"main": "index.js",
|
|
39
31
|
"module": "index.js",
|
|
@@ -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(8244, "Switch Remote")),
|
|
33
33
|
group: 'navigation',
|
|
34
34
|
when: ( ContextKeyExpr.equals('viewContainer', VIEWLET_ID)),
|
|
35
35
|
order: 1,
|
|
@@ -118,27 +118,27 @@ class HelpModel {
|
|
|
118
118
|
const getStarted = this.viewModel.helpInformation.filter(info => info.getStarted);
|
|
119
119
|
if (getStarted.length) {
|
|
120
120
|
const helpItemValues = ( getStarted.map((info) => this.createHelpItemValue(info, 'getStarted')));
|
|
121
|
-
const getStartedHelpItem = this.items?.find(item => item.icon === getStartedIcon) ?? ( new GetStartedHelpItem(getStartedIcon, ( localize(
|
|
121
|
+
const getStartedHelpItem = this.items?.find(item => item.icon === getStartedIcon) ?? ( new GetStartedHelpItem(getStartedIcon, ( localize(8245, "Get Started")), helpItemValues, this.quickInputService, this.environmentService, this.openerService, this.remoteExplorerService, this.workspaceContextService, this.commandService));
|
|
122
122
|
getStartedHelpItem.values = helpItemValues;
|
|
123
123
|
helpItems.push(getStartedHelpItem);
|
|
124
124
|
}
|
|
125
125
|
const documentation = this.viewModel.helpInformation.filter(info => info.documentation);
|
|
126
126
|
if (documentation.length) {
|
|
127
127
|
const helpItemValues = ( documentation.map((info) => this.createHelpItemValue(info, 'documentation')));
|
|
128
|
-
const documentationHelpItem = this.items?.find(item => item.icon === documentationIcon) ?? ( new HelpItem(documentationIcon, ( localize(
|
|
128
|
+
const documentationHelpItem = this.items?.find(item => item.icon === documentationIcon) ?? ( new HelpItem(documentationIcon, ( localize(8246, "Read Documentation")), helpItemValues, this.quickInputService, this.environmentService, this.openerService, this.remoteExplorerService, this.workspaceContextService));
|
|
129
129
|
documentationHelpItem.values = helpItemValues;
|
|
130
130
|
helpItems.push(documentationHelpItem);
|
|
131
131
|
}
|
|
132
132
|
const issues = this.viewModel.helpInformation.filter(info => info.issues);
|
|
133
133
|
if (issues.length) {
|
|
134
134
|
const helpItemValues = ( issues.map((info) => this.createHelpItemValue(info, 'issues')));
|
|
135
|
-
const reviewIssuesHelpItem = this.items?.find(item => item.icon === reviewIssuesIcon) ?? ( new HelpItem(reviewIssuesIcon, ( localize(
|
|
135
|
+
const reviewIssuesHelpItem = this.items?.find(item => item.icon === reviewIssuesIcon) ?? ( new HelpItem(reviewIssuesIcon, ( localize(8247, "Review Issues")), helpItemValues, this.quickInputService, this.environmentService, this.openerService, this.remoteExplorerService, this.workspaceContextService));
|
|
136
136
|
reviewIssuesHelpItem.values = helpItemValues;
|
|
137
137
|
helpItems.push(reviewIssuesHelpItem);
|
|
138
138
|
}
|
|
139
139
|
if (helpItems.length) {
|
|
140
140
|
const helpItemValues = ( this.viewModel.helpInformation.map(info => this.createHelpItemValue(info, 'reportIssue')));
|
|
141
|
-
const issueReporterItem = this.items?.find(item => item.icon === reportIssuesIcon) ?? ( new IssueReporterItem(reportIssuesIcon, ( localize(
|
|
141
|
+
const issueReporterItem = this.items?.find(item => item.icon === reportIssuesIcon) ?? ( new IssueReporterItem(reportIssuesIcon, ( localize(8248, "Report Issue")), helpItemValues, this.quickInputService, this.environmentService, this.commandService, this.openerService, this.remoteExplorerService, this.workspaceContextService));
|
|
142
142
|
issueReporterItem.values = helpItemValues;
|
|
143
143
|
helpItems.push(issueReporterItem);
|
|
144
144
|
}
|
|
@@ -255,7 +255,7 @@ class HelpItemBase {
|
|
|
255
255
|
if (this.values.length > 1) {
|
|
256
256
|
const actions = await this.getActions();
|
|
257
257
|
if (actions.length) {
|
|
258
|
-
const action = await this.quickInputService.pick(actions, { placeHolder: ( localize(
|
|
258
|
+
const action = await this.quickInputService.pick(actions, { placeHolder: ( localize(8249, "Select url to open")) });
|
|
259
259
|
if (action) {
|
|
260
260
|
await this.takeAction(action.extensionDescription, action.url);
|
|
261
261
|
}
|
|
@@ -316,7 +316,7 @@ class IssueReporterItem extends HelpItemBase {
|
|
|
316
316
|
}
|
|
317
317
|
let HelpPanel = class HelpPanel extends ViewPane {
|
|
318
318
|
static { this.ID = '~remote.helpPanel'; }
|
|
319
|
-
static { this.TITLE = ( localize2(
|
|
319
|
+
static { this.TITLE = ( localize2(8250, "Help and feedback")); }
|
|
320
320
|
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, remoteExplorerService, environmentService, themeService, telemetryService, hoverService, workspaceContextService, walkthroughsService) {
|
|
321
321
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
322
322
|
this.viewModel = viewModel;
|
|
@@ -338,7 +338,7 @@ let HelpPanel = class HelpPanel extends ViewPane {
|
|
|
338
338
|
getAriaLabel: (item) => {
|
|
339
339
|
return item.label;
|
|
340
340
|
},
|
|
341
|
-
getWidgetAriaLabel: () => ( localize(
|
|
341
|
+
getWidgetAriaLabel: () => ( localize(8251, "Remote Help"))
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
344
|
const model = ( new HelpModel(
|
|
@@ -468,7 +468,7 @@ let RemoteViewPaneContainer = class RemoteViewPaneContainer extends FilterViewPa
|
|
|
468
468
|
this.remoteExplorerService.targetType = isStringArray(viewDescriptor.remoteAuthority) ? viewDescriptor.remoteAuthority : [viewDescriptor.remoteAuthority];
|
|
469
469
|
}
|
|
470
470
|
getTitle() {
|
|
471
|
-
const title = ( localize(
|
|
471
|
+
const title = ( localize(8252, "Remote Explorer"));
|
|
472
472
|
return title;
|
|
473
473
|
}
|
|
474
474
|
};
|
|
@@ -487,7 +487,7 @@ RemoteViewPaneContainer = ( __decorate([
|
|
|
487
487
|
], RemoteViewPaneContainer));
|
|
488
488
|
( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
489
489
|
id: VIEWLET_ID,
|
|
490
|
-
title: ( localize2(
|
|
490
|
+
title: ( localize2(8252, "Remote Explorer")),
|
|
491
491
|
ctorDescriptor: ( new SyncDescriptor(RemoteViewPaneContainer)),
|
|
492
492
|
hideIfEmpty: true,
|
|
493
493
|
viewOrderDelegate: {
|
|
@@ -593,10 +593,10 @@ class ReconnectionTimer {
|
|
|
593
593
|
}
|
|
594
594
|
const remainingTime = Math.ceil(remainingTimeMs / 1000);
|
|
595
595
|
if (remainingTime === 1) {
|
|
596
|
-
this._parent.report(( localize(
|
|
596
|
+
this._parent.report(( localize(8253, "Attempting to reconnect in {0} second...", remainingTime)));
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
599
|
-
this._parent.report(( localize(
|
|
599
|
+
this._parent.report(( localize(8254, "Attempting to reconnect in {0} seconds...", remainingTime)));
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
}
|
|
@@ -645,13 +645,13 @@ let RemoteAgentConnectionStatusListener = class RemoteAgentConnectionStatusListe
|
|
|
645
645
|
let lastIncomingDataTime = 0;
|
|
646
646
|
let reconnectionAttempts = 0;
|
|
647
647
|
const reconnectButton = {
|
|
648
|
-
label: ( localize(
|
|
648
|
+
label: ( localize(8255, "Reconnect Now")),
|
|
649
649
|
callback: () => {
|
|
650
650
|
reconnectWaitEvent?.skipWait();
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
const reloadButton = {
|
|
654
|
-
label: ( localize(
|
|
654
|
+
label: ( localize(8256, "Reload Window")),
|
|
655
655
|
callback: () => {
|
|
656
656
|
telemetryService.publicLog2('remoteReconnectionReload', {
|
|
657
657
|
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(8257, "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(8258, "Disconnected. Attempting to reconnect...")));
|
|
707
707
|
disposableListener = 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(8259, "Cannot reconnect. Please reload the window.")),
|
|
735
|
+
primaryButton: ( localize(8260, "&&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
|
+
8261,
|
|
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(8262, "&&Allow")),
|
|
54
54
|
run: () => ConnectionChoice.Allow
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
label: ( localize(
|
|
57
|
+
label: ( localize(8263, "&&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(8264, "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(8265, "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
|
+
8266,
|
|
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-411e0589-fa79-504b-b32c-80a88847b23a-common/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";
|
|
@@ -17,7 +17,7 @@ import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
17
17
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
18
18
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
19
19
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
20
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
20
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
21
21
|
import { PersistentConnectionEventType } from '@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common/vscode/vs/platform/remote/common/remoteAgentConnection';
|
|
22
22
|
import { IRemoteAuthorityResolverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
23
23
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
@@ -31,7 +31,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
31
31
|
import { ReloadWindowAction } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/workbench/browser/actions/windowActions';
|
|
32
32
|
import { EXTENSION_INSTALL_SKIP_WALKTHROUGH_CONTEXT } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
33
33
|
import { IExtensionGalleryService, IExtensionManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
34
|
-
import { LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
34
|
+
import { LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/extensions/common/extensions';
|
|
35
35
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
36
36
|
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
37
37
|
import { RemoteNameContext, VirtualWorkspaceContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
@@ -43,7 +43,7 @@ import { DomEmitter } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
|
43
43
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
44
44
|
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
45
45
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
46
|
-
import { infoIcon } from '@codingame/monaco-vscode-
|
|
46
|
+
import { infoIcon } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/extensions/browser/extensionsIcons';
|
|
47
47
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
48
48
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
49
49
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
@@ -132,14 +132,14 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
132
132
|
this.updateRemoteStatusIndicator();
|
|
133
133
|
}
|
|
134
134
|
registerActions() {
|
|
135
|
-
const category = ( localize2(
|
|
135
|
+
const category = ( localize2(8300, "Remote"));
|
|
136
136
|
const that = this;
|
|
137
137
|
this._register(registerAction2(class extends Action2 {
|
|
138
138
|
constructor() {
|
|
139
139
|
super({
|
|
140
140
|
id: RemoteStatusIndicator_1.REMOTE_ACTIONS_COMMAND_ID,
|
|
141
141
|
category,
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(8301, "Show Remote Menu")),
|
|
143
143
|
f1: true,
|
|
144
144
|
keybinding: {
|
|
145
145
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -155,7 +155,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
155
155
|
super({
|
|
156
156
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
157
157
|
category,
|
|
158
|
-
title: ( localize2(
|
|
158
|
+
title: ( localize2(8302, "Close Remote Connection")),
|
|
159
159
|
f1: true,
|
|
160
160
|
precondition: ( ContextKeyExpr.or(RemoteNameContext, VirtualWorkspaceContext))
|
|
161
161
|
});
|
|
@@ -167,7 +167,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
167
167
|
group: '6_close',
|
|
168
168
|
command: {
|
|
169
169
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
170
|
-
title: ( localize(
|
|
170
|
+
title: ( localize(8303, "Close Re&&mote Connection"))
|
|
171
171
|
},
|
|
172
172
|
order: 3.5
|
|
173
173
|
});
|
|
@@ -179,7 +179,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
179
179
|
super({
|
|
180
180
|
id: RemoteStatusIndicator_1.INSTALL_REMOTE_EXTENSIONS_ID,
|
|
181
181
|
category,
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(8304, "Install Remote Development Extensions")),
|
|
183
183
|
f1: true
|
|
184
184
|
});
|
|
185
185
|
this.run = (accessor, input) => {
|
|
@@ -387,18 +387,18 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
387
387
|
const hostLabel = this.labelService.getHostLabel(Schemas.vscodeRemote, this.remoteAuthority) || this.remoteAuthority;
|
|
388
388
|
switch (this.connectionState) {
|
|
389
389
|
case 'initializing':
|
|
390
|
-
this.renderRemoteStatusIndicator(( localize(
|
|
390
|
+
this.renderRemoteStatusIndicator(( localize(8305, "Opening Remote...")), ( localize(8305, "Opening Remote...")), undefined, true );
|
|
391
391
|
break;
|
|
392
392
|
case 'reconnecting':
|
|
393
393
|
this.renderRemoteStatusIndicator(`${( localize(
|
|
394
|
-
|
|
394
|
+
8306,
|
|
395
395
|
"Reconnecting to {0}...",
|
|
396
396
|
truncate(hostLabel, RemoteStatusIndicator_1.REMOTE_STATUS_LABEL_MAX_LENGTH)
|
|
397
397
|
))}`, undefined, undefined, true );
|
|
398
398
|
break;
|
|
399
399
|
case 'disconnected':
|
|
400
400
|
this.renderRemoteStatusIndicator(`$(alert) ${( localize(
|
|
401
|
-
|
|
401
|
+
8307,
|
|
402
402
|
"Disconnected from {0}",
|
|
403
403
|
truncate(hostLabel, RemoteStatusIndicator_1.REMOTE_STATUS_LABEL_MAX_LENGTH)
|
|
404
404
|
))}`);
|
|
@@ -410,7 +410,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
410
410
|
tooltip.appendMarkdown(hostNameTooltip);
|
|
411
411
|
}
|
|
412
412
|
else {
|
|
413
|
-
tooltip.appendText(( localize(
|
|
413
|
+
tooltip.appendText(( localize(8308, "Editing on {0}", hostLabel)));
|
|
414
414
|
}
|
|
415
415
|
this.renderRemoteStatusIndicator(`$(remote) ${truncate(hostLabel, RemoteStatusIndicator_1.REMOTE_STATUS_LABEL_MAX_LENGTH)}`, tooltip);
|
|
416
416
|
}
|
|
@@ -426,12 +426,12 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
426
426
|
tooltip.appendMarkdown(hostNameTooltip);
|
|
427
427
|
}
|
|
428
428
|
else {
|
|
429
|
-
tooltip.appendText(( localize(
|
|
429
|
+
tooltip.appendText(( localize(8309, "Editing on {0}", workspaceLabel)));
|
|
430
430
|
}
|
|
431
431
|
if (!isWeb || this.remoteAuthority) {
|
|
432
432
|
tooltip.appendMarkdown('\n\n');
|
|
433
433
|
tooltip.appendMarkdown(( localize(
|
|
434
|
-
|
|
434
|
+
8310,
|
|
435
435
|
"Some [features are not available]({0}) for resources located on a virtual file system.",
|
|
436
436
|
`command:${LIST_WORKSPACE_UNSUPPORTED_EXTENSIONS_COMMAND_ID}`
|
|
437
437
|
)));
|
|
@@ -440,13 +440,13 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
this.renderRemoteStatusIndicator(`$(remote)`, ( localize(
|
|
443
|
+
this.renderRemoteStatusIndicator(`$(remote)`, ( localize(8311, "Open a Remote Window")));
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
446
|
renderRemoteStatusIndicator(initialText, initialTooltip, command, showProgress) {
|
|
447
447
|
const { text, tooltip, ariaLabel } = this.withNetworkStatus(initialText, initialTooltip, showProgress);
|
|
448
448
|
const properties = {
|
|
449
|
-
name: ( localize(
|
|
449
|
+
name: ( localize(8312, "Remote Host")),
|
|
450
450
|
kind: this.networkState === 'offline' ? 'offline' : 'remote',
|
|
451
451
|
ariaLabel,
|
|
452
452
|
text,
|
|
@@ -474,7 +474,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
474
474
|
switch (this.networkState) {
|
|
475
475
|
case 'offline': {
|
|
476
476
|
const offlineMessage = ( localize(
|
|
477
|
-
|
|
477
|
+
8313,
|
|
478
478
|
"Network appears to be offline, certain features might be unavailable."
|
|
479
479
|
));
|
|
480
480
|
text = textWithAlert();
|
|
@@ -485,7 +485,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
485
485
|
case 'high-latency':
|
|
486
486
|
text = textWithAlert();
|
|
487
487
|
tooltip = this.appendTooltipLine(tooltip, ( localize(
|
|
488
|
-
|
|
488
|
+
8314,
|
|
489
489
|
"Network appears to have high latency ({0}ms last, {1}ms average), certain features may be slow to respond.",
|
|
490
490
|
remoteConnectionLatencyMeasurer.latency?.current?.toFixed(2),
|
|
491
491
|
remoteConnectionLatencyMeasurer.latency?.average?.toFixed(2)
|
|
@@ -597,13 +597,13 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
597
597
|
const label = metadata.startConnectLabel;
|
|
598
598
|
const buttons = [{
|
|
599
599
|
iconClass: ThemeIcon.asClassName(infoIcon),
|
|
600
|
-
tooltip: ( localize(
|
|
600
|
+
tooltip: ( localize(8315, "Learn More"))
|
|
601
601
|
}];
|
|
602
602
|
notInstalledItems.push({ type: 'item', id: metadata.id, label: label, buttons: buttons });
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
items.push({
|
|
606
|
-
type: 'separator', label: ( localize(
|
|
606
|
+
type: 'separator', label: ( localize(8316, 'Install'))
|
|
607
607
|
});
|
|
608
608
|
items.push(...notInstalledItems);
|
|
609
609
|
}
|
|
@@ -616,13 +616,13 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
616
616
|
items.push({
|
|
617
617
|
type: 'item',
|
|
618
618
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
619
|
-
label: ( localize(
|
|
619
|
+
label: ( localize(8317, 'Close Remote Connection'))
|
|
620
620
|
});
|
|
621
621
|
if (this.connectionState === 'disconnected') {
|
|
622
622
|
items.push({
|
|
623
623
|
type: 'item',
|
|
624
624
|
id: ReloadWindowAction.ID,
|
|
625
|
-
label: ( localize(
|
|
625
|
+
label: ( localize(8318, 'Reload Window'))
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
}
|
|
@@ -630,7 +630,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
630
630
|
items.push({
|
|
631
631
|
type: 'item',
|
|
632
632
|
id: RemoteStatusIndicator_1.CLOSE_REMOTE_COMMAND_ID,
|
|
633
|
-
label: ( localize(
|
|
633
|
+
label: ( localize(8319, 'Close Remote Workspace'))
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
}
|
|
@@ -641,7 +641,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
641
641
|
};
|
|
642
642
|
const disposables = ( new DisposableStore());
|
|
643
643
|
const quickPick = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
644
|
-
quickPick.placeholder = ( localize(
|
|
644
|
+
quickPick.placeholder = ( localize(8320, "Select an option to open a Remote Window"));
|
|
645
645
|
quickPick.items = computeItems();
|
|
646
646
|
quickPick.sortByLabel = false;
|
|
647
647
|
quickPick.canSelectMany = false;
|
|
@@ -653,7 +653,7 @@ let RemoteStatusIndicator = class RemoteStatusIndicator extends Disposable {
|
|
|
653
653
|
if (remoteExtension) {
|
|
654
654
|
quickPick.items = [];
|
|
655
655
|
quickPick.busy = true;
|
|
656
|
-
quickPick.placeholder = ( localize(
|
|
656
|
+
quickPick.placeholder = ( localize(8321, 'Installing extension... '));
|
|
657
657
|
await this.installExtension(remoteExtension.id);
|
|
658
658
|
quickPick.hide();
|
|
659
659
|
await this.runRemoteStartCommand(remoteExtension.id, remoteExtension.startCommand);
|
|
@@ -715,7 +715,7 @@ RemoteStatusIndicator = RemoteStatusIndicator_1 = ( __decorate([
|
|
|
715
715
|
'workbench.remoteIndicator.showExtensionRecommendations': {
|
|
716
716
|
type: 'boolean',
|
|
717
717
|
markdownDescription: ( localize(
|
|
718
|
-
|
|
718
|
+
8322,
|
|
719
719
|
"When enabled, remote extensions recommendations will be shown in the Remote Indicator menu."
|
|
720
720
|
)),
|
|
721
721
|
default: true
|
|
@@ -33,14 +33,14 @@ let RemoteStartEntry = class RemoteStartEntry extends Disposable {
|
|
|
33
33
|
this.registerListeners();
|
|
34
34
|
}
|
|
35
35
|
registerActions() {
|
|
36
|
-
const category = ( localize2(
|
|
36
|
+
const category = ( localize2(8323, "Remote"));
|
|
37
37
|
const startEntry = this;
|
|
38
38
|
this._register(registerAction2(class extends Action2 {
|
|
39
39
|
constructor() {
|
|
40
40
|
super({
|
|
41
41
|
id: RemoteStartEntry_1.REMOTE_WEB_START_ENTRY_ACTIONS_COMMAND_ID,
|
|
42
42
|
category,
|
|
43
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(8324, "Show Remote Start Entry for web")),
|
|
44
44
|
f1: false
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
3
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
4
4
|
import { IRemoteExplorerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService.service";
|
|
5
5
|
export declare class ShowCandidateContribution extends Disposable implements IWorkbenchContribution {
|
|
6
6
|
static readonly ID = "workbench.contrib.showPortCandidate";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
4
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
5
5
|
import { IRemoteExplorerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
6
6
|
|
|
7
7
|
let ShowCandidateContribution = class ShowCandidateContribution extends Disposable {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ITunnelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service";
|
|
2
2
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
4
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
5
5
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
6
6
|
import { IRemoteExplorerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService.service";
|
|
7
7
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
@@ -4,7 +4,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
4
4
|
import { TunnelPrivacyId, TunnelProtocol } from '@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel';
|
|
5
5
|
import { ITunnelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/tunnel/common/tunnel.service';
|
|
6
6
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
7
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
8
8
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
9
9
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
10
|
import { IRemoteExplorerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteExplorerService.service';
|
|
@@ -26,12 +26,12 @@ let TunnelFactoryContribution = class TunnelFactoryContribution extends Disposab
|
|
|
26
26
|
privacyOptions = [
|
|
27
27
|
{
|
|
28
28
|
id: 'private',
|
|
29
|
-
label: ( localize(
|
|
29
|
+
label: ( localize(8325, "Private")),
|
|
30
30
|
themeIcon: 'lock'
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: 'public',
|
|
34
|
-
label: ( localize(
|
|
34
|
+
label: ( localize(8326, "Public")),
|
|
35
35
|
themeIcon: 'eye'
|
|
36
36
|
}
|
|
37
37
|
];
|
|
@@ -100,9 +100,9 @@ let RemoteInvalidWorkspaceDetector = class RemoteInvalidWorkspaceDetector extend
|
|
|
100
100
|
}
|
|
101
101
|
const res = await this.dialogService.confirm({
|
|
102
102
|
type: 'warning',
|
|
103
|
-
message: ( localize(
|
|
104
|
-
detail: ( localize(
|
|
105
|
-
primaryButton: ( localize(
|
|
103
|
+
message: ( localize(8386, "Workspace does not exist")),
|
|
104
|
+
detail: ( localize(8387, "Please select another workspace to open.")),
|
|
105
|
+
primaryButton: ( localize(8388, "&&Open Workspace..."))
|
|
106
106
|
});
|
|
107
107
|
if (res.confirmed) {
|
|
108
108
|
if (workspace.configuration) {
|
|
@@ -129,7 +129,7 @@ registerWorkbenchContribution2(RemoteInvalidWorkspaceDetector.ID, RemoteInvalidW
|
|
|
129
129
|
constructor() {
|
|
130
130
|
super({
|
|
131
131
|
id: 'workbench.action.triggerReconnect',
|
|
132
|
-
title: ( localize2(
|
|
132
|
+
title: ( localize2(8389, 'Connection: Trigger Reconnect')),
|
|
133
133
|
category: Categories.Developer,
|
|
134
134
|
f1: true,
|
|
135
135
|
});
|
|
@@ -142,7 +142,7 @@ registerWorkbenchContribution2(RemoteInvalidWorkspaceDetector.ID, RemoteInvalidW
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: 'workbench.action.pauseSocketWriting',
|
|
145
|
-
title: ( localize2(
|
|
145
|
+
title: ( localize2(8390, 'Connection: Pause socket writing')),
|
|
146
146
|
category: Categories.Developer,
|
|
147
147
|
f1: true,
|
|
148
148
|
});
|
|
@@ -162,11 +162,11 @@ const extensionKindSchema = {
|
|
|
162
162
|
],
|
|
163
163
|
enumDescriptions: [
|
|
164
164
|
( localize(
|
|
165
|
-
|
|
165
|
+
8391,
|
|
166
166
|
"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."
|
|
167
167
|
)),
|
|
168
168
|
( localize(
|
|
169
|
-
|
|
169
|
+
8392,
|
|
170
170
|
"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote."
|
|
171
171
|
))
|
|
172
172
|
],
|
|
@@ -174,13 +174,13 @@ const extensionKindSchema = {
|
|
|
174
174
|
( Registry.as(Extensions$1.Configuration))
|
|
175
175
|
.registerConfiguration({
|
|
176
176
|
id: 'remote',
|
|
177
|
-
title: ( localize(
|
|
177
|
+
title: ( localize(8393, "Remote")),
|
|
178
178
|
type: 'object',
|
|
179
179
|
properties: {
|
|
180
180
|
'remote.extensionKind': {
|
|
181
181
|
type: 'object',
|
|
182
182
|
markdownDescription: ( localize(
|
|
183
|
-
|
|
183
|
+
8394,
|
|
184
184
|
"Override the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions are run on the remote. By overriding an extension's default kind using this setting, you specify if that extension should be installed and enabled locally or remotely."
|
|
185
185
|
)),
|
|
186
186
|
patternProperties: {
|
|
@@ -195,13 +195,13 @@ const extensionKindSchema = {
|
|
|
195
195
|
},
|
|
196
196
|
'remote.restoreForwardedPorts': {
|
|
197
197
|
type: 'boolean',
|
|
198
|
-
markdownDescription: ( localize(
|
|
198
|
+
markdownDescription: ( localize(8395, "Restores the ports you forwarded in a workspace.")),
|
|
199
199
|
default: true
|
|
200
200
|
},
|
|
201
201
|
'remote.autoForwardPorts': {
|
|
202
202
|
type: 'boolean',
|
|
203
203
|
markdownDescription: ( localize(
|
|
204
|
-
|
|
204
|
+
8396,
|
|
205
205
|
"When enabled, new running processes are detected and ports that they listen on are automatically forwarded. Disabling this setting will not prevent all ports from being forwarded. Even when disabled, extensions will still be able to cause ports to be forwarded, and opening some URLs will still cause ports to forwarded. Also see {0}.",
|
|
206
206
|
'`#remote.autoForwardPortsSource#`'
|
|
207
207
|
)),
|
|
@@ -210,7 +210,7 @@ const extensionKindSchema = {
|
|
|
210
210
|
'remote.autoForwardPortsSource': {
|
|
211
211
|
type: 'string',
|
|
212
212
|
markdownDescription: ( localize(
|
|
213
|
-
|
|
213
|
+
8397,
|
|
214
214
|
"Sets the source from which ports are automatically forwarded when {0} is true. When {0} is false, {1} will be used to find information about ports that have already been forwarded. On Windows and macOS remotes, the `process` and `hybrid` options have no effect and `output` will be used.",
|
|
215
215
|
'`#remote.autoForwardPorts#`',
|
|
216
216
|
'`#remote.autoForwardPortsSource#`'
|
|
@@ -218,15 +218,15 @@ const extensionKindSchema = {
|
|
|
218
218
|
enum: ['process', 'output', 'hybrid'],
|
|
219
219
|
enumDescriptions: [
|
|
220
220
|
( localize(
|
|
221
|
-
|
|
221
|
+
8398,
|
|
222
222
|
"Ports will be automatically forwarded when discovered by watching for processes that are started and include a port."
|
|
223
223
|
)),
|
|
224
224
|
( localize(
|
|
225
|
-
|
|
225
|
+
8399,
|
|
226
226
|
"Ports will be automatically forwarded when discovered by reading terminal and debug output. Not all processes that use ports will print to the integrated terminal or debug console, so some ports will be missed. Ports forwarded based on output will not be \"un-forwarded\" until reload or until the port is closed by the user in the Ports view."
|
|
227
227
|
)),
|
|
228
228
|
( localize(
|
|
229
|
-
|
|
229
|
+
8400,
|
|
230
230
|
"Ports will be automatically forwarded when discovered by reading terminal and debug output. Not all processes that use ports will print to the integrated terminal or debug console, so some ports will be missed. Ports will be \"un-forwarded\" by watching for processes that listen on that port to be terminated."
|
|
231
231
|
))
|
|
232
232
|
],
|
|
@@ -236,14 +236,14 @@ const extensionKindSchema = {
|
|
|
236
236
|
type: 'number',
|
|
237
237
|
default: 20,
|
|
238
238
|
markdownDescription: ( localize(
|
|
239
|
-
|
|
239
|
+
8401,
|
|
240
240
|
"The number of auto forwarded ports that will trigger the switch from `process` to `hybrid` when automatically forwarding ports and `remote.autoForwardPortsSource` is set to `process` by default. Set to `0` to disable the fallback. When `remote.autoForwardPortsFallback` hasn't been configured, but `remote.autoForwardPortsSource` has, `remote.autoForwardPortsFallback` will be treated as though it's set to `0`."
|
|
241
241
|
))
|
|
242
242
|
},
|
|
243
243
|
'remote.forwardOnOpen': {
|
|
244
244
|
type: 'boolean',
|
|
245
245
|
description: ( localize(
|
|
246
|
-
|
|
246
|
+
8402,
|
|
247
247
|
"Controls whether local URLs with a port will be forwarded when opened from the terminal and the debug console."
|
|
248
248
|
)),
|
|
249
249
|
default: true
|
|
@@ -254,7 +254,7 @@ const extensionKindSchema = {
|
|
|
254
254
|
'(^\\d+(-\\d+)?$)|(.+)': {
|
|
255
255
|
type: 'object',
|
|
256
256
|
description: ( localize(
|
|
257
|
-
|
|
257
|
+
8403,
|
|
258
258
|
"A port, range of ports (ex. \"40000-55000\"), host and port (ex. \"db:1234\"), or regular expression (ex. \".+\\\\/server.js\"). For a port number or range, the attributes will apply to that port number or range of port numbers. Attributes which use a regular expression will apply to ports whose associated process command line matches the expression."
|
|
259
259
|
)),
|
|
260
260
|
properties: {
|
|
@@ -262,27 +262,27 @@ const extensionKindSchema = {
|
|
|
262
262
|
type: 'string',
|
|
263
263
|
enum: ['notify', 'openBrowser', 'openBrowserOnce', 'openPreview', 'silent', 'ignore'],
|
|
264
264
|
enumDescriptions: [
|
|
265
|
-
( localize(
|
|
265
|
+
( localize(8404, "Shows a notification when a port is automatically forwarded.")),
|
|
266
266
|
( localize(
|
|
267
|
-
|
|
267
|
+
8405,
|
|
268
268
|
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."
|
|
269
269
|
)),
|
|
270
270
|
( localize(
|
|
271
|
-
|
|
271
|
+
8406,
|
|
272
272
|
"Opens the browser when the port is automatically forwarded, but only the first time the port is forward during a session. Depending on your settings, this could open an embedded browser."
|
|
273
273
|
)),
|
|
274
274
|
( localize(
|
|
275
|
-
|
|
275
|
+
8407,
|
|
276
276
|
"Opens a preview in the same window when the port is automatically forwarded."
|
|
277
277
|
)),
|
|
278
278
|
( localize(
|
|
279
|
-
|
|
279
|
+
8408,
|
|
280
280
|
"Shows no notification and takes no action when this port is automatically forwarded."
|
|
281
281
|
)),
|
|
282
|
-
( localize(
|
|
282
|
+
( localize(8409, "This port will not be automatically forwarded."))
|
|
283
283
|
],
|
|
284
284
|
description: ( localize(
|
|
285
|
-
|
|
285
|
+
8410,
|
|
286
286
|
"Defines the action that occurs when the port is discovered for automatic forwarding"
|
|
287
287
|
)),
|
|
288
288
|
default: 'notify'
|
|
@@ -290,20 +290,20 @@ const extensionKindSchema = {
|
|
|
290
290
|
'elevateIfNeeded': {
|
|
291
291
|
type: 'boolean',
|
|
292
292
|
description: ( localize(
|
|
293
|
-
|
|
293
|
+
8411,
|
|
294
294
|
"Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."
|
|
295
295
|
)),
|
|
296
296
|
default: false
|
|
297
297
|
},
|
|
298
298
|
'label': {
|
|
299
299
|
type: 'string',
|
|
300
|
-
description: ( localize(
|
|
301
|
-
default: ( localize(
|
|
300
|
+
description: ( localize(8412, "Label that will be shown in the UI for this port.")),
|
|
301
|
+
default: ( localize(8413, "Application"))
|
|
302
302
|
},
|
|
303
303
|
'requireLocalPort': {
|
|
304
304
|
type: 'boolean',
|
|
305
305
|
markdownDescription: ( localize(
|
|
306
|
-
|
|
306
|
+
8414,
|
|
307
307
|
"When true, a modal dialog will show if the chosen local port isn't used for forwarding."
|
|
308
308
|
)),
|
|
309
309
|
default: false
|
|
@@ -311,22 +311,22 @@ const extensionKindSchema = {
|
|
|
311
311
|
'protocol': {
|
|
312
312
|
type: 'string',
|
|
313
313
|
enum: ['http', 'https'],
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(8415, "The protocol to use when forwarding this port."))
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
317
|
default: {
|
|
318
|
-
'label': ( localize(
|
|
318
|
+
'label': ( localize(8413, "Application")),
|
|
319
319
|
'onAutoForward': 'notify'
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
markdownDescription: ( localize(
|
|
324
|
-
|
|
324
|
+
8416,
|
|
325
325
|
"Set properties that are applied when a specific port number is forwarded. For example:\n\n```\n\"3000\": {\n \"label\": \"Application\"\n},\n\"40000-55000\": {\n \"onAutoForward\": \"ignore\"\n},\n\".+\\\\/server.js\": {\n \"onAutoForward\": \"openPreview\"\n}\n```"
|
|
326
326
|
)),
|
|
327
327
|
defaultSnippets: [{ body: { '${1:3000}': { label: '${2:Application}', onAutoForward: 'openPreview' } } }],
|
|
328
328
|
errorMessage: ( localize(
|
|
329
|
-
|
|
329
|
+
8417,
|
|
330
330
|
"Must be a port number, range of port numbers, or regular expression."
|
|
331
331
|
)),
|
|
332
332
|
additionalProperties: false,
|
|
@@ -346,23 +346,23 @@ const extensionKindSchema = {
|
|
|
346
346
|
type: 'string',
|
|
347
347
|
enum: ['notify', 'openBrowser', 'openPreview', 'silent', 'ignore'],
|
|
348
348
|
enumDescriptions: [
|
|
349
|
-
( localize(
|
|
349
|
+
( localize(8404, "Shows a notification when a port is automatically forwarded.")),
|
|
350
350
|
( localize(
|
|
351
|
-
|
|
351
|
+
8405,
|
|
352
352
|
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."
|
|
353
353
|
)),
|
|
354
354
|
( localize(
|
|
355
|
-
|
|
355
|
+
8407,
|
|
356
356
|
"Opens a preview in the same window when the port is automatically forwarded."
|
|
357
357
|
)),
|
|
358
358
|
( localize(
|
|
359
|
-
|
|
359
|
+
8408,
|
|
360
360
|
"Shows no notification and takes no action when this port is automatically forwarded."
|
|
361
361
|
)),
|
|
362
|
-
( localize(
|
|
362
|
+
( localize(8409, "This port will not be automatically forwarded."))
|
|
363
363
|
],
|
|
364
364
|
description: ( localize(
|
|
365
|
-
|
|
365
|
+
8410,
|
|
366
366
|
"Defines the action that occurs when the port is discovered for automatic forwarding"
|
|
367
367
|
)),
|
|
368
368
|
default: 'notify'
|
|
@@ -370,20 +370,20 @@ const extensionKindSchema = {
|
|
|
370
370
|
'elevateIfNeeded': {
|
|
371
371
|
type: 'boolean',
|
|
372
372
|
description: ( localize(
|
|
373
|
-
|
|
373
|
+
8411,
|
|
374
374
|
"Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."
|
|
375
375
|
)),
|
|
376
376
|
default: false
|
|
377
377
|
},
|
|
378
378
|
'label': {
|
|
379
379
|
type: 'string',
|
|
380
|
-
description: ( localize(
|
|
381
|
-
default: ( localize(
|
|
380
|
+
description: ( localize(8412, "Label that will be shown in the UI for this port.")),
|
|
381
|
+
default: ( localize(8413, "Application"))
|
|
382
382
|
},
|
|
383
383
|
'requireLocalPort': {
|
|
384
384
|
type: 'boolean',
|
|
385
385
|
markdownDescription: ( localize(
|
|
386
|
-
|
|
386
|
+
8414,
|
|
387
387
|
"When true, a modal dialog will show if the chosen local port isn't used for forwarding."
|
|
388
388
|
)),
|
|
389
389
|
default: false
|
|
@@ -391,12 +391,12 @@ const extensionKindSchema = {
|
|
|
391
391
|
'protocol': {
|
|
392
392
|
type: 'string',
|
|
393
393
|
enum: ['http', 'https'],
|
|
394
|
-
description: ( localize(
|
|
394
|
+
description: ( localize(8415, "The protocol to use when forwarding this port."))
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
defaultSnippets: [{ body: { onAutoForward: 'ignore' } }],
|
|
398
398
|
markdownDescription: ( localize(
|
|
399
|
-
|
|
399
|
+
8418,
|
|
400
400
|
"Set default properties that are applied to all ports that don't get properties from the setting {0}. For example:\n\n```\n{\n \"onAutoForward\": \"ignore\"\n}\n```",
|
|
401
401
|
'`#remote.portsAttributes#`'
|
|
402
402
|
)),
|
|
@@ -407,7 +407,7 @@ const extensionKindSchema = {
|
|
|
407
407
|
enum: ['localhost', 'allInterfaces'],
|
|
408
408
|
default: 'localhost',
|
|
409
409
|
description: ( localize(
|
|
410
|
-
|
|
410
|
+
8419,
|
|
411
411
|
"Specifies the local host name that will be used for port forwarding."
|
|
412
412
|
))
|
|
413
413
|
}
|
|
@@ -46,15 +46,15 @@ let RemoteConnectionFailureNotificationContribution = class RemoteConnectionFail
|
|
|
46
46
|
async _presentConnectionError(err) {
|
|
47
47
|
await this._dialogService.prompt({
|
|
48
48
|
type: Severity.Error,
|
|
49
|
-
message: ( localize(
|
|
49
|
+
message: ( localize(11732, "An unexpected error occurred that requires a reload of this page.")),
|
|
50
50
|
detail: ( localize(
|
|
51
|
-
|
|
51
|
+
11733,
|
|
52
52
|
"The workbench failed to connect to the server (Error: {0})",
|
|
53
53
|
err ? err.message : ''
|
|
54
54
|
)),
|
|
55
55
|
buttons: [
|
|
56
56
|
{
|
|
57
|
-
label: ( localize(
|
|
57
|
+
label: ( localize(11734, "&&Reload")),
|
|
58
58
|
run: () => this._hostService.reload()
|
|
59
59
|
}
|
|
60
60
|
]
|