@codingame/monaco-vscode-remote-agent-service-override 1.83.2 → 1.83.3
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/l10n.js
ADDED
package/missing-services.js
CHANGED
|
@@ -171,6 +171,7 @@ import { IBannerService } from 'vscode/vscode/vs/workbench/services/banner/brows
|
|
|
171
171
|
import { ITitleService } from 'vscode/vscode/vs/workbench/services/title/common/titleService';
|
|
172
172
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
173
173
|
import { unsupported } from './tools.js';
|
|
174
|
+
import { getBuiltInExtensionTranslationsUris } from './l10n.js';
|
|
174
175
|
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
175
176
|
|
|
176
177
|
var _a;
|
|
@@ -1068,8 +1069,9 @@ registerSingleton(ILanguagePackService, class LanguagePackService {
|
|
|
1068
1069
|
async getInstalledLanguages() {
|
|
1069
1070
|
return [];
|
|
1070
1071
|
}
|
|
1071
|
-
async getBuiltInExtensionTranslationsUri() {
|
|
1072
|
-
|
|
1072
|
+
async getBuiltInExtensionTranslationsUri(id, language) {
|
|
1073
|
+
const uri = getBuiltInExtensionTranslationsUris(language)?.[id];
|
|
1074
|
+
return uri != null ? ( URI.parse(uri)) : undefined;
|
|
1073
1075
|
}
|
|
1074
1076
|
}, 1 );
|
|
1075
1077
|
registerSingleton(ITreeViewsDnDService, TreeViewsDnDService, 1 );
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.3",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@ import { OS, isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
|
6
6
|
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
7
7
|
import { remoteConnectionLatencyMeasurer, IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|
|
8
8
|
import { ILoggerService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
9
|
-
import {
|
|
9
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
10
10
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
11
11
|
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
12
12
|
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
@@ -100,12 +100,9 @@ let RemoteInvalidWorkspaceDetector = class RemoteInvalidWorkspaceDetector extend
|
|
|
100
100
|
}
|
|
101
101
|
const res = await this.dialogService.confirm({
|
|
102
102
|
type: 'warning',
|
|
103
|
-
message: (
|
|
104
|
-
detail: (
|
|
105
|
-
primaryButton: (
|
|
106
|
-
{ key: 'invalidWorkspacePrimary', comment: ['&& denotes a mnemonic'] },
|
|
107
|
-
"&&Open Workspace..."
|
|
108
|
-
))
|
|
103
|
+
message: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'invalidWorkspaceMessage', "Workspace does not exist"),
|
|
104
|
+
detail: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'invalidWorkspaceDetail', "Please select another workspace to open."),
|
|
105
|
+
primaryButton: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', { key: 'invalidWorkspacePrimary', comment: ['&& denotes a mnemonic'] }, "&&Open Workspace...")
|
|
109
106
|
});
|
|
110
107
|
if (res.confirmed) {
|
|
111
108
|
if (workspace.configuration) {
|
|
@@ -178,7 +175,7 @@ workbenchContributionsRegistry.registerWorkbenchContribution(InitialRemoteConnec
|
|
|
178
175
|
constructor() {
|
|
179
176
|
super({
|
|
180
177
|
id: 'workbench.action.triggerReconnect',
|
|
181
|
-
title: { value: (
|
|
178
|
+
title: { value: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'triggerReconnect', "Connection: Trigger Reconnect"), original: 'Connection: Trigger Reconnect' },
|
|
182
179
|
category: Categories.Developer,
|
|
183
180
|
f1: true,
|
|
184
181
|
});
|
|
@@ -191,7 +188,7 @@ workbenchContributionsRegistry.registerWorkbenchContribution(InitialRemoteConnec
|
|
|
191
188
|
constructor() {
|
|
192
189
|
super({
|
|
193
190
|
id: 'workbench.action.pauseSocketWriting',
|
|
194
|
-
title: { value: (
|
|
191
|
+
title: { value: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'pauseSocketWriting', "Connection: Pause socket writing"), original: 'Connection: Pause socket writing' },
|
|
195
192
|
category: Categories.Developer,
|
|
196
193
|
f1: true,
|
|
197
194
|
});
|
|
@@ -210,28 +207,19 @@ const extensionKindSchema = {
|
|
|
210
207
|
'workspace'
|
|
211
208
|
],
|
|
212
209
|
enumDescriptions: [
|
|
213
|
-
(
|
|
214
|
-
|
|
215
|
-
"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."
|
|
216
|
-
)),
|
|
217
|
-
( localize(
|
|
218
|
-
'workspace',
|
|
219
|
-
"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote."
|
|
220
|
-
))
|
|
210
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'ui', "UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),
|
|
211
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'workspace', "Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")
|
|
221
212
|
],
|
|
222
213
|
};
|
|
223
214
|
( Registry.as(Extensions$1.Configuration))
|
|
224
215
|
.registerConfiguration({
|
|
225
216
|
id: 'remote',
|
|
226
|
-
title: (
|
|
217
|
+
title: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote', "Remote"),
|
|
227
218
|
type: 'object',
|
|
228
219
|
properties: {
|
|
229
220
|
'remote.extensionKind': {
|
|
230
221
|
type: 'object',
|
|
231
|
-
markdownDescription: (
|
|
232
|
-
'remote.extensionKind',
|
|
233
|
-
"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."
|
|
234
|
-
)),
|
|
222
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.extensionKind', "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."),
|
|
235
223
|
patternProperties: {
|
|
236
224
|
'([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$': {
|
|
237
225
|
oneOf: [{ type: 'array', items: extensionKindSchema }, extensionKindSchema],
|
|
@@ -244,50 +232,28 @@ const extensionKindSchema = {
|
|
|
244
232
|
},
|
|
245
233
|
'remote.restoreForwardedPorts': {
|
|
246
234
|
type: 'boolean',
|
|
247
|
-
markdownDescription: (
|
|
248
|
-
'remote.restoreForwardedPorts',
|
|
249
|
-
"Restores the ports you forwarded in a workspace."
|
|
250
|
-
)),
|
|
235
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.restoreForwardedPorts', "Restores the ports you forwarded in a workspace."),
|
|
251
236
|
default: true
|
|
252
237
|
},
|
|
253
238
|
'remote.autoForwardPorts': {
|
|
254
239
|
type: 'boolean',
|
|
255
|
-
markdownDescription: (
|
|
256
|
-
'remote.autoForwardPorts',
|
|
257
|
-
"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."
|
|
258
|
-
)),
|
|
240
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.autoForwardPorts', "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."),
|
|
259
241
|
default: true
|
|
260
242
|
},
|
|
261
243
|
'remote.autoForwardPortsSource': {
|
|
262
244
|
type: 'string',
|
|
263
|
-
markdownDescription: (
|
|
264
|
-
'remote.autoForwardPortsSource',
|
|
265
|
-
"Sets the source from which ports are automatically forwarded when {0} is true. On Windows and Mac remotes, the `process` and `hybrid` options have no effect and `output` will be used. Requires a reload to take effect.",
|
|
266
|
-
'`#remote.autoForwardPorts#`'
|
|
267
|
-
)),
|
|
245
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.autoForwardPortsSource', "Sets the source from which ports are automatically forwarded when {0} is true. On Windows and Mac remotes, the `process` and `hybrid` options have no effect and `output` will be used. Requires a reload to take effect.", '`#remote.autoForwardPorts#`'),
|
|
268
246
|
enum: ['process', 'output', 'hybrid'],
|
|
269
247
|
enumDescriptions: [
|
|
270
|
-
(
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
)),
|
|
274
|
-
( localize(
|
|
275
|
-
'remote.autoForwardPortsSource.output',
|
|
276
|
-
"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."
|
|
277
|
-
)),
|
|
278
|
-
( localize(
|
|
279
|
-
'remote.autoForwardPortsSource.hybrid',
|
|
280
|
-
"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."
|
|
281
|
-
))
|
|
248
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.autoForwardPortsSource.process', "Ports will be automatically forwarded when discovered by watching for processes that are started and include a port."),
|
|
249
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.autoForwardPortsSource.output', "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."),
|
|
250
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.autoForwardPortsSource.hybrid', "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.")
|
|
282
251
|
],
|
|
283
252
|
default: 'process'
|
|
284
253
|
},
|
|
285
254
|
'remote.forwardOnOpen': {
|
|
286
255
|
type: 'boolean',
|
|
287
|
-
description: (
|
|
288
|
-
'remote.forwardOnClick',
|
|
289
|
-
"Controls whether local URLs with a port will be forwarded when opened from the terminal and the debug console."
|
|
290
|
-
)),
|
|
256
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.forwardOnClick', "Controls whether local URLs with a port will be forwarded when opened from the terminal and the debug console."),
|
|
291
257
|
default: true
|
|
292
258
|
},
|
|
293
259
|
'remote.portsAttributes': {
|
|
@@ -295,94 +261,52 @@ const extensionKindSchema = {
|
|
|
295
261
|
patternProperties: {
|
|
296
262
|
'(^\\d+(-\\d+)?$)|(.+)': {
|
|
297
263
|
type: 'object',
|
|
298
|
-
description: (
|
|
299
|
-
'remote.portsAttributes.port',
|
|
300
|
-
"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."
|
|
301
|
-
)),
|
|
264
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.port', "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."),
|
|
302
265
|
properties: {
|
|
303
266
|
'onAutoForward': {
|
|
304
267
|
type: 'string',
|
|
305
268
|
enum: ['notify', 'openBrowser', 'openBrowserOnce', 'openPreview', 'silent', 'ignore'],
|
|
306
269
|
enumDescriptions: [
|
|
307
|
-
(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
)
|
|
311
|
-
(
|
|
312
|
-
|
|
313
|
-
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."
|
|
314
|
-
)),
|
|
315
|
-
( localize(
|
|
316
|
-
'remote.portsAttributes.openBrowserOnce',
|
|
317
|
-
"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."
|
|
318
|
-
)),
|
|
319
|
-
( localize(
|
|
320
|
-
'remote.portsAttributes.openPreview',
|
|
321
|
-
"Opens a preview in the same window when the port is automatically forwarded."
|
|
322
|
-
)),
|
|
323
|
-
( localize(
|
|
324
|
-
'remote.portsAttributes.silent',
|
|
325
|
-
"Shows no notification and takes no action when this port is automatically forwarded."
|
|
326
|
-
)),
|
|
327
|
-
( localize(
|
|
328
|
-
'remote.portsAttributes.ignore',
|
|
329
|
-
"This port will not be automatically forwarded."
|
|
330
|
-
))
|
|
270
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.notify', "Shows a notification when a port is automatically forwarded."),
|
|
271
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.openBrowser', "Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."),
|
|
272
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.openBrowserOnce', "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
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.openPreview', "Opens a preview in the same window when the port is automatically forwarded."),
|
|
274
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.silent', "Shows no notification and takes no action when this port is automatically forwarded."),
|
|
275
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.ignore', "This port will not be automatically forwarded.")
|
|
331
276
|
],
|
|
332
|
-
description: (
|
|
333
|
-
'remote.portsAttributes.onForward',
|
|
334
|
-
"Defines the action that occurs when the port is discovered for automatic forwarding"
|
|
335
|
-
)),
|
|
277
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.onForward', "Defines the action that occurs when the port is discovered for automatic forwarding"),
|
|
336
278
|
default: 'notify'
|
|
337
279
|
},
|
|
338
280
|
'elevateIfNeeded': {
|
|
339
281
|
type: 'boolean',
|
|
340
|
-
description: (
|
|
341
|
-
'remote.portsAttributes.elevateIfNeeded',
|
|
342
|
-
"Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."
|
|
343
|
-
)),
|
|
282
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.elevateIfNeeded', "Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."),
|
|
344
283
|
default: false
|
|
345
284
|
},
|
|
346
285
|
'label': {
|
|
347
286
|
type: 'string',
|
|
348
|
-
description: (
|
|
349
|
-
|
|
350
|
-
"Label that will be shown in the UI for this port."
|
|
351
|
-
)),
|
|
352
|
-
default: ( localize('remote.portsAttributes.labelDefault', "Application"))
|
|
287
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.label', "Label that will be shown in the UI for this port."),
|
|
288
|
+
default: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.labelDefault', "Application")
|
|
353
289
|
},
|
|
354
290
|
'requireLocalPort': {
|
|
355
291
|
type: 'boolean',
|
|
356
|
-
markdownDescription: (
|
|
357
|
-
'remote.portsAttributes.requireLocalPort',
|
|
358
|
-
"When true, a modal dialog will show if the chosen local port isn't used for forwarding."
|
|
359
|
-
)),
|
|
292
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.requireLocalPort', "When true, a modal dialog will show if the chosen local port isn't used for forwarding."),
|
|
360
293
|
default: false
|
|
361
294
|
},
|
|
362
295
|
'protocol': {
|
|
363
296
|
type: 'string',
|
|
364
297
|
enum: ['http', 'https'],
|
|
365
|
-
description: (
|
|
366
|
-
'remote.portsAttributes.protocol',
|
|
367
|
-
"The protocol to use when forwarding this port."
|
|
368
|
-
))
|
|
298
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.protocol', "The protocol to use when forwarding this port.")
|
|
369
299
|
}
|
|
370
300
|
},
|
|
371
301
|
default: {
|
|
372
|
-
'label': (
|
|
302
|
+
'label': localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.labelDefault', "Application"),
|
|
373
303
|
'onAutoForward': 'notify'
|
|
374
304
|
}
|
|
375
305
|
}
|
|
376
306
|
},
|
|
377
|
-
markdownDescription: (
|
|
378
|
-
'remote.portsAttributes',
|
|
379
|
-
"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```"
|
|
380
|
-
)),
|
|
307
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes', "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```"),
|
|
381
308
|
defaultSnippets: [{ body: { '${1:3000}': { label: '${2:Application}', onAutoForward: 'openPreview' } } }],
|
|
382
|
-
errorMessage: (
|
|
383
|
-
'remote.portsAttributes.patternError',
|
|
384
|
-
"Must be a port number, range of port numbers, or regular expression."
|
|
385
|
-
)),
|
|
309
|
+
errorMessage: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.patternError', "Must be a port number, range of port numbers, or regular expression."),
|
|
386
310
|
additionalProperties: false,
|
|
387
311
|
default: {
|
|
388
312
|
'443': {
|
|
@@ -400,82 +324,45 @@ const extensionKindSchema = {
|
|
|
400
324
|
type: 'string',
|
|
401
325
|
enum: ['notify', 'openBrowser', 'openPreview', 'silent', 'ignore'],
|
|
402
326
|
enumDescriptions: [
|
|
403
|
-
(
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
)
|
|
407
|
-
(
|
|
408
|
-
'remote.portsAttributes.openBrowser',
|
|
409
|
-
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."
|
|
410
|
-
)),
|
|
411
|
-
( localize(
|
|
412
|
-
'remote.portsAttributes.openPreview',
|
|
413
|
-
"Opens a preview in the same window when the port is automatically forwarded."
|
|
414
|
-
)),
|
|
415
|
-
( localize(
|
|
416
|
-
'remote.portsAttributes.silent',
|
|
417
|
-
"Shows no notification and takes no action when this port is automatically forwarded."
|
|
418
|
-
)),
|
|
419
|
-
( localize(
|
|
420
|
-
'remote.portsAttributes.ignore',
|
|
421
|
-
"This port will not be automatically forwarded."
|
|
422
|
-
))
|
|
327
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.notify', "Shows a notification when a port is automatically forwarded."),
|
|
328
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.openBrowser', "Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."),
|
|
329
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.openPreview', "Opens a preview in the same window when the port is automatically forwarded."),
|
|
330
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.silent', "Shows no notification and takes no action when this port is automatically forwarded."),
|
|
331
|
+
localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.ignore', "This port will not be automatically forwarded.")
|
|
423
332
|
],
|
|
424
|
-
description: (
|
|
425
|
-
'remote.portsAttributes.onForward',
|
|
426
|
-
"Defines the action that occurs when the port is discovered for automatic forwarding"
|
|
427
|
-
)),
|
|
333
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.onForward', "Defines the action that occurs when the port is discovered for automatic forwarding"),
|
|
428
334
|
default: 'notify'
|
|
429
335
|
},
|
|
430
336
|
'elevateIfNeeded': {
|
|
431
337
|
type: 'boolean',
|
|
432
|
-
description: (
|
|
433
|
-
'remote.portsAttributes.elevateIfNeeded',
|
|
434
|
-
"Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."
|
|
435
|
-
)),
|
|
338
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.elevateIfNeeded', "Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."),
|
|
436
339
|
default: false
|
|
437
340
|
},
|
|
438
341
|
'label': {
|
|
439
342
|
type: 'string',
|
|
440
|
-
description: (
|
|
441
|
-
|
|
442
|
-
"Label that will be shown in the UI for this port."
|
|
443
|
-
)),
|
|
444
|
-
default: ( localize('remote.portsAttributes.labelDefault', "Application"))
|
|
343
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.label', "Label that will be shown in the UI for this port."),
|
|
344
|
+
default: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.labelDefault', "Application")
|
|
445
345
|
},
|
|
446
346
|
'requireLocalPort': {
|
|
447
347
|
type: 'boolean',
|
|
448
|
-
markdownDescription: (
|
|
449
|
-
'remote.portsAttributes.requireLocalPort',
|
|
450
|
-
"When true, a modal dialog will show if the chosen local port isn't used for forwarding."
|
|
451
|
-
)),
|
|
348
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.requireLocalPort', "When true, a modal dialog will show if the chosen local port isn't used for forwarding."),
|
|
452
349
|
default: false
|
|
453
350
|
},
|
|
454
351
|
'protocol': {
|
|
455
352
|
type: 'string',
|
|
456
353
|
enum: ['http', 'https'],
|
|
457
|
-
description: (
|
|
458
|
-
'remote.portsAttributes.protocol',
|
|
459
|
-
"The protocol to use when forwarding this port."
|
|
460
|
-
))
|
|
354
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.protocol', "The protocol to use when forwarding this port.")
|
|
461
355
|
}
|
|
462
356
|
},
|
|
463
357
|
defaultSnippets: [{ body: { onAutoForward: 'ignore' } }],
|
|
464
|
-
markdownDescription: (
|
|
465
|
-
'remote.portsAttributes.defaults',
|
|
466
|
-
"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```",
|
|
467
|
-
'`#remote.portsAttributes#`'
|
|
468
|
-
)),
|
|
358
|
+
markdownDescription: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.portsAttributes.defaults', "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```", '`#remote.portsAttributes#`'),
|
|
469
359
|
additionalProperties: false
|
|
470
360
|
},
|
|
471
361
|
'remote.localPortHost': {
|
|
472
362
|
type: 'string',
|
|
473
363
|
enum: ['localhost', 'allInterfaces'],
|
|
474
364
|
default: 'localhost',
|
|
475
|
-
description: (
|
|
476
|
-
'remote.localPortHost',
|
|
477
|
-
"Specifies the local host name that will be used for port forwarding."
|
|
478
|
-
))
|
|
365
|
+
description: localizeWithPath('vs/workbench/contrib/remote/common/remote.contribution', 'remote.localPortHost', "Specifies the local host name that will be used for port forwarding.")
|
|
479
366
|
}
|
|
480
367
|
}
|
|
481
368
|
});
|
|
@@ -44,18 +44,11 @@ let RemoteConnectionFailureNotificationContribution = class RemoteConnectionFail
|
|
|
44
44
|
async _presentConnectionError(err) {
|
|
45
45
|
await this._dialogService.prompt({
|
|
46
46
|
type: Severity.Error,
|
|
47
|
-
message: (
|
|
48
|
-
|
|
49
|
-
"An unexpected error occurred that requires a reload of this page."
|
|
50
|
-
)),
|
|
51
|
-
detail: ( nls.localize(
|
|
52
|
-
'connectionErrorDetail',
|
|
53
|
-
"The workbench failed to connect to the server (Error: {0})",
|
|
54
|
-
err ? err.message : ''
|
|
55
|
-
)),
|
|
47
|
+
message: nls.localizeWithPath('vs/workbench/services/remote/browser/remoteAgentService', 'connectionError', "An unexpected error occurred that requires a reload of this page."),
|
|
48
|
+
detail: nls.localizeWithPath('vs/workbench/services/remote/browser/remoteAgentService', 'connectionErrorDetail', "The workbench failed to connect to the server (Error: {0})", err ? err.message : ''),
|
|
56
49
|
buttons: [
|
|
57
50
|
{
|
|
58
|
-
label:
|
|
51
|
+
label: nls.localizeWithPath('vs/workbench/services/remote/browser/remoteAgentService', { key: 'reload', comment: ['&& denotes a mnemonic'] }, "&&Reload"),
|
|
59
52
|
run: () => this._hostService.reload()
|
|
60
53
|
}
|
|
61
54
|
]
|