@codingame/monaco-vscode-configuration-service-override 1.83.5 → 1.83.7

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.
@@ -152,8 +152,16 @@ let ConfigurationEditing = class ConfigurationEditing {
152
152
  }
153
153
  }
154
154
  onInvalidConfigurationError(error, operation) {
155
- const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'openTasksConfiguration', "Open Tasks Configuration")
156
- : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'openLaunchConfiguration', "Open Launch Configuration")
155
+ const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( nls.localizeWithPath(
156
+ 'vs/workbench/services/configuration/common/configurationEditing',
157
+ 'openTasksConfiguration',
158
+ "Open Tasks Configuration"
159
+ ))
160
+ : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( nls.localizeWithPath(
161
+ 'vs/workbench/services/configuration/common/configurationEditing',
162
+ 'openLaunchConfiguration',
163
+ "Open Launch Configuration"
164
+ ))
157
165
  : null;
158
166
  if (openStandAloneConfigurationActionLabel) {
159
167
  this.notificationService.prompt(Severity.Error, error.message, [{
@@ -163,18 +171,34 @@ let ConfigurationEditing = class ConfigurationEditing {
163
171
  }
164
172
  else {
165
173
  this.notificationService.prompt(Severity.Error, error.message, [{
166
- label: nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'open', "Open Settings"),
174
+ label: ( nls.localizeWithPath(
175
+ 'vs/workbench/services/configuration/common/configurationEditing',
176
+ 'open',
177
+ "Open Settings"
178
+ )),
167
179
  run: () => this.openSettings(operation)
168
180
  }]);
169
181
  }
170
182
  }
171
183
  onConfigurationFileDirtyError(error, operation, scopes) {
172
- const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'openTasksConfiguration', "Open Tasks Configuration")
173
- : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'openLaunchConfiguration', "Open Launch Configuration")
184
+ const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( nls.localizeWithPath(
185
+ 'vs/workbench/services/configuration/common/configurationEditing',
186
+ 'openTasksConfiguration',
187
+ "Open Tasks Configuration"
188
+ ))
189
+ : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( nls.localizeWithPath(
190
+ 'vs/workbench/services/configuration/common/configurationEditing',
191
+ 'openLaunchConfiguration',
192
+ "Open Launch Configuration"
193
+ ))
174
194
  : null;
175
195
  if (openStandAloneConfigurationActionLabel) {
176
196
  this.notificationService.prompt(Severity.Error, error.message, [{
177
- label: nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'saveAndRetry', "Save and Retry"),
197
+ label: ( nls.localizeWithPath(
198
+ 'vs/workbench/services/configuration/common/configurationEditing',
199
+ 'saveAndRetry',
200
+ "Save and Retry"
201
+ )),
178
202
  run: () => {
179
203
  const key = operation.key ? `${operation.workspaceStandAloneConfigurationKey}.${operation.key}` : operation.workspaceStandAloneConfigurationKey;
180
204
  this.writeConfiguration(operation.target, { key, value: operation.value }, { handleDirtyFile: 'save', scopes });
@@ -187,11 +211,19 @@ let ConfigurationEditing = class ConfigurationEditing {
187
211
  }
188
212
  else {
189
213
  this.notificationService.prompt(Severity.Error, error.message, [{
190
- label: nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'saveAndRetry', "Save and Retry"),
214
+ label: ( nls.localizeWithPath(
215
+ 'vs/workbench/services/configuration/common/configurationEditing',
216
+ 'saveAndRetry',
217
+ "Save and Retry"
218
+ )),
191
219
  run: () => this.writeConfiguration(operation.target, { key: operation.key, value: operation.value }, { handleDirtyFile: 'save', scopes })
192
220
  },
193
221
  {
194
- label: nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'open', "Open Settings"),
222
+ label: ( nls.localizeWithPath(
223
+ 'vs/workbench/services/configuration/common/configurationEditing',
224
+ 'open',
225
+ "Open Settings"
226
+ )),
195
227
  run: () => this.openSettings(operation)
196
228
  }]);
197
229
  }
@@ -227,30 +259,100 @@ let ConfigurationEditing = class ConfigurationEditing {
227
259
  }
228
260
  toErrorMessage(error, target, operation) {
229
261
  switch (error) {
230
- case 12 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorPolicyConfiguration', "Unable to write {0} because it is configured in system policy.", operation.key);
231
- case 0 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorUnknownKey', "Unable to write to {0} because {1} is not a registered configuration.", this.stringifyTarget(target), operation.key);
232
- case 1 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidWorkspaceConfigurationApplication', "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.", operation.key);
233
- case 2 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidWorkspaceConfigurationMachine', "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.", operation.key);
234
- case 3 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidFolderConfiguration', "Unable to write to Folder Settings because {0} does not support the folder resource scope.", operation.key);
235
- case 4 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidUserTarget', "Unable to write to User Settings because {0} does not support for global scope.", operation.key);
236
- case 5 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidWorkspaceTarget', "Unable to write to Workspace Settings because {0} does not support for workspace scope in a multi folder workspace.", operation.key);
237
- case 6 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidFolderTarget', "Unable to write to Folder Settings because no resource is provided.");
238
- case 7 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidResourceLanguageConfiguration', "Unable to write to Language Settings because {0} is not a resource language setting.", operation.key);
239
- case 8 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorNoWorkspaceOpened', "Unable to write to {0} because no workspace is opened. Please open a workspace first and try again.", this.stringifyTarget(target));
262
+ case 12 : return ( nls.localizeWithPath(
263
+ 'vs/workbench/services/configuration/common/configurationEditing',
264
+ 'errorPolicyConfiguration',
265
+ "Unable to write {0} because it is configured in system policy.",
266
+ operation.key
267
+ ));
268
+ case 0 : return ( nls.localizeWithPath(
269
+ 'vs/workbench/services/configuration/common/configurationEditing',
270
+ 'errorUnknownKey',
271
+ "Unable to write to {0} because {1} is not a registered configuration.",
272
+ this.stringifyTarget(target),
273
+ operation.key
274
+ ));
275
+ case 1 : return ( nls.localizeWithPath(
276
+ 'vs/workbench/services/configuration/common/configurationEditing',
277
+ 'errorInvalidWorkspaceConfigurationApplication',
278
+ "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.",
279
+ operation.key
280
+ ));
281
+ case 2 : return ( nls.localizeWithPath(
282
+ 'vs/workbench/services/configuration/common/configurationEditing',
283
+ 'errorInvalidWorkspaceConfigurationMachine',
284
+ "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.",
285
+ operation.key
286
+ ));
287
+ case 3 : return ( nls.localizeWithPath(
288
+ 'vs/workbench/services/configuration/common/configurationEditing',
289
+ 'errorInvalidFolderConfiguration',
290
+ "Unable to write to Folder Settings because {0} does not support the folder resource scope.",
291
+ operation.key
292
+ ));
293
+ case 4 : return ( nls.localizeWithPath(
294
+ 'vs/workbench/services/configuration/common/configurationEditing',
295
+ 'errorInvalidUserTarget',
296
+ "Unable to write to User Settings because {0} does not support for global scope.",
297
+ operation.key
298
+ ));
299
+ case 5 : return ( nls.localizeWithPath(
300
+ 'vs/workbench/services/configuration/common/configurationEditing',
301
+ 'errorInvalidWorkspaceTarget',
302
+ "Unable to write to Workspace Settings because {0} does not support for workspace scope in a multi folder workspace.",
303
+ operation.key
304
+ ));
305
+ case 6 : return ( nls.localizeWithPath(
306
+ 'vs/workbench/services/configuration/common/configurationEditing',
307
+ 'errorInvalidFolderTarget',
308
+ "Unable to write to Folder Settings because no resource is provided."
309
+ ));
310
+ case 7 : return ( nls.localizeWithPath(
311
+ 'vs/workbench/services/configuration/common/configurationEditing',
312
+ 'errorInvalidResourceLanguageConfiguration',
313
+ "Unable to write to Language Settings because {0} is not a resource language setting.",
314
+ operation.key
315
+ ));
316
+ case 8 : return ( nls.localizeWithPath(
317
+ 'vs/workbench/services/configuration/common/configurationEditing',
318
+ 'errorNoWorkspaceOpened',
319
+ "Unable to write to {0} because no workspace is opened. Please open a workspace first and try again.",
320
+ this.stringifyTarget(target)
321
+ ));
240
322
  case 11 : {
241
323
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
242
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidTaskConfiguration', "Unable to write into the tasks configuration file. Please open it to correct errors/warnings in it and try again.");
324
+ return ( nls.localizeWithPath(
325
+ 'vs/workbench/services/configuration/common/configurationEditing',
326
+ 'errorInvalidTaskConfiguration',
327
+ "Unable to write into the tasks configuration file. Please open it to correct errors/warnings in it and try again."
328
+ ));
243
329
  }
244
330
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
245
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidLaunchConfiguration', "Unable to write into the launch configuration file. Please open it to correct errors/warnings in it and try again.");
331
+ return ( nls.localizeWithPath(
332
+ 'vs/workbench/services/configuration/common/configurationEditing',
333
+ 'errorInvalidLaunchConfiguration',
334
+ "Unable to write into the launch configuration file. Please open it to correct errors/warnings in it and try again."
335
+ ));
246
336
  }
247
337
  switch (target) {
248
338
  case 1 :
249
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidConfiguration', "Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again.");
339
+ return ( nls.localizeWithPath(
340
+ 'vs/workbench/services/configuration/common/configurationEditing',
341
+ 'errorInvalidConfiguration',
342
+ "Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again."
343
+ ));
250
344
  case 2 :
251
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidRemoteConfiguration', "Unable to write into remote user settings. Please open the remote user settings to correct errors/warnings in it and try again.");
345
+ return ( nls.localizeWithPath(
346
+ 'vs/workbench/services/configuration/common/configurationEditing',
347
+ 'errorInvalidRemoteConfiguration',
348
+ "Unable to write into remote user settings. Please open the remote user settings to correct errors/warnings in it and try again."
349
+ ));
252
350
  case 3 :
253
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidConfigurationWorkspace', "Unable to write into workspace settings. Please open the workspace settings to correct errors/warnings in the file and try again.");
351
+ return ( nls.localizeWithPath(
352
+ 'vs/workbench/services/configuration/common/configurationEditing',
353
+ 'errorInvalidConfigurationWorkspace',
354
+ "Unable to write into workspace settings. Please open the workspace settings to correct errors/warnings in the file and try again."
355
+ ));
254
356
  case 4 : {
255
357
  let workspaceFolderName = '<<unknown>>';
256
358
  if (operation.resource) {
@@ -259,7 +361,12 @@ let ConfigurationEditing = class ConfigurationEditing {
259
361
  workspaceFolderName = folder.name;
260
362
  }
261
363
  }
262
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorInvalidConfigurationFolder', "Unable to write into folder settings. Please open the '{0}' folder settings to correct errors/warnings in it and try again.", workspaceFolderName);
364
+ return ( nls.localizeWithPath(
365
+ 'vs/workbench/services/configuration/common/configurationEditing',
366
+ 'errorInvalidConfigurationFolder',
367
+ "Unable to write into folder settings. Please open the '{0}' folder settings to correct errors/warnings in it and try again.",
368
+ workspaceFolderName
369
+ ));
263
370
  }
264
371
  default:
265
372
  return '';
@@ -267,18 +374,38 @@ let ConfigurationEditing = class ConfigurationEditing {
267
374
  }
268
375
  case 9 : {
269
376
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
270
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorTasksConfigurationFileDirty', "Unable to write into tasks configuration file because the file has unsaved changes. Please save it first and then try again.");
377
+ return ( nls.localizeWithPath(
378
+ 'vs/workbench/services/configuration/common/configurationEditing',
379
+ 'errorTasksConfigurationFileDirty',
380
+ "Unable to write into tasks configuration file because the file has unsaved changes. Please save it first and then try again."
381
+ ));
271
382
  }
272
383
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
273
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorLaunchConfigurationFileDirty', "Unable to write into launch configuration file because the file has unsaved changes. Please save it first and then try again.");
384
+ return ( nls.localizeWithPath(
385
+ 'vs/workbench/services/configuration/common/configurationEditing',
386
+ 'errorLaunchConfigurationFileDirty',
387
+ "Unable to write into launch configuration file because the file has unsaved changes. Please save it first and then try again."
388
+ ));
274
389
  }
275
390
  switch (target) {
276
391
  case 1 :
277
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorConfigurationFileDirty', "Unable to write into user settings because the file has unsaved changes. Please save the user settings file first and then try again.");
392
+ return ( nls.localizeWithPath(
393
+ 'vs/workbench/services/configuration/common/configurationEditing',
394
+ 'errorConfigurationFileDirty',
395
+ "Unable to write into user settings because the file has unsaved changes. Please save the user settings file first and then try again."
396
+ ));
278
397
  case 2 :
279
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorRemoteConfigurationFileDirty', "Unable to write into remote user settings because the file has unsaved changes. Please save the remote user settings file first and then try again.");
398
+ return ( nls.localizeWithPath(
399
+ 'vs/workbench/services/configuration/common/configurationEditing',
400
+ 'errorRemoteConfigurationFileDirty',
401
+ "Unable to write into remote user settings because the file has unsaved changes. Please save the remote user settings file first and then try again."
402
+ ));
280
403
  case 3 :
281
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorConfigurationFileDirtyWorkspace', "Unable to write into workspace settings because the file has unsaved changes. Please save the workspace settings file first and then try again.");
404
+ return ( nls.localizeWithPath(
405
+ 'vs/workbench/services/configuration/common/configurationEditing',
406
+ 'errorConfigurationFileDirtyWorkspace',
407
+ "Unable to write into workspace settings because the file has unsaved changes. Please save the workspace settings file first and then try again."
408
+ ));
282
409
  case 4 : {
283
410
  let workspaceFolderName = '<<unknown>>';
284
411
  if (operation.resource) {
@@ -287,7 +414,12 @@ let ConfigurationEditing = class ConfigurationEditing {
287
414
  workspaceFolderName = folder.name;
288
415
  }
289
416
  }
290
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorConfigurationFileDirtyFolder', "Unable to write into folder settings because the file has unsaved changes. Please save the '{0}' folder settings file first and then try again.", workspaceFolderName);
417
+ return ( nls.localizeWithPath(
418
+ 'vs/workbench/services/configuration/common/configurationEditing',
419
+ 'errorConfigurationFileDirtyFolder',
420
+ "Unable to write into folder settings because the file has unsaved changes. Please save the '{0}' folder settings file first and then try again.",
421
+ workspaceFolderName
422
+ ));
291
423
  }
292
424
  default:
293
425
  return '';
@@ -295,34 +427,79 @@ let ConfigurationEditing = class ConfigurationEditing {
295
427
  }
296
428
  case 10 :
297
429
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
298
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorTasksConfigurationFileModifiedSince', "Unable to write into tasks configuration file because the content of the file is newer.");
430
+ return ( nls.localizeWithPath(
431
+ 'vs/workbench/services/configuration/common/configurationEditing',
432
+ 'errorTasksConfigurationFileModifiedSince',
433
+ "Unable to write into tasks configuration file because the content of the file is newer."
434
+ ));
299
435
  }
300
436
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
301
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorLaunchConfigurationFileModifiedSince', "Unable to write into launch configuration file because the content of the file is newer.");
437
+ return ( nls.localizeWithPath(
438
+ 'vs/workbench/services/configuration/common/configurationEditing',
439
+ 'errorLaunchConfigurationFileModifiedSince',
440
+ "Unable to write into launch configuration file because the content of the file is newer."
441
+ ));
302
442
  }
303
443
  switch (target) {
304
444
  case 1 :
305
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorConfigurationFileModifiedSince', "Unable to write into user settings because the content of the file is newer.");
445
+ return ( nls.localizeWithPath(
446
+ 'vs/workbench/services/configuration/common/configurationEditing',
447
+ 'errorConfigurationFileModifiedSince',
448
+ "Unable to write into user settings because the content of the file is newer."
449
+ ));
306
450
  case 2 :
307
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorRemoteConfigurationFileModifiedSince', "Unable to write into remote user settings because the content of the file is newer.");
451
+ return ( nls.localizeWithPath(
452
+ 'vs/workbench/services/configuration/common/configurationEditing',
453
+ 'errorRemoteConfigurationFileModifiedSince',
454
+ "Unable to write into remote user settings because the content of the file is newer."
455
+ ));
308
456
  case 3 :
309
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorConfigurationFileModifiedSinceWorkspace', "Unable to write into workspace settings because the content of the file is newer.");
457
+ return ( nls.localizeWithPath(
458
+ 'vs/workbench/services/configuration/common/configurationEditing',
459
+ 'errorConfigurationFileModifiedSinceWorkspace',
460
+ "Unable to write into workspace settings because the content of the file is newer."
461
+ ));
310
462
  case 4 :
311
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorConfigurationFileModifiedSinceFolder', "Unable to write into folder settings because the content of the file is newer.");
463
+ return ( nls.localizeWithPath(
464
+ 'vs/workbench/services/configuration/common/configurationEditing',
465
+ 'errorConfigurationFileModifiedSinceFolder',
466
+ "Unable to write into folder settings because the content of the file is newer."
467
+ ));
312
468
  }
313
- case 13 : return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'errorUnknown', "Unable to write to {0} because of an internal error.", this.stringifyTarget(target));
469
+ case 13 : return ( nls.localizeWithPath(
470
+ 'vs/workbench/services/configuration/common/configurationEditing',
471
+ 'errorUnknown',
472
+ "Unable to write to {0} because of an internal error.",
473
+ this.stringifyTarget(target)
474
+ ));
314
475
  }
315
476
  }
316
477
  stringifyTarget(target) {
317
478
  switch (target) {
318
479
  case 1 :
319
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'userTarget', "User Settings");
480
+ return ( nls.localizeWithPath(
481
+ 'vs/workbench/services/configuration/common/configurationEditing',
482
+ 'userTarget',
483
+ "User Settings"
484
+ ));
320
485
  case 2 :
321
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'remoteUserTarget', "Remote User Settings");
486
+ return ( nls.localizeWithPath(
487
+ 'vs/workbench/services/configuration/common/configurationEditing',
488
+ 'remoteUserTarget',
489
+ "Remote User Settings"
490
+ ));
322
491
  case 3 :
323
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'workspaceTarget', "Workspace Settings");
492
+ return ( nls.localizeWithPath(
493
+ 'vs/workbench/services/configuration/common/configurationEditing',
494
+ 'workspaceTarget',
495
+ "Workspace Settings"
496
+ ));
324
497
  case 4 :
325
- return nls.localizeWithPath('vs/workbench/services/configuration/common/configurationEditing', 'folderTarget', "Folder Settings");
498
+ return ( nls.localizeWithPath(
499
+ 'vs/workbench/services/configuration/common/configurationEditing',
500
+ 'folderTarget',
501
+ "Folder Settings"
502
+ ));
326
503
  default:
327
504
  return '';
328
505
  }
@@ -26,7 +26,11 @@ import { firstOrDefault } from 'monaco-editor/esm/vs/base/common/arrays.js';
26
26
  const resourceLabelFormattersExtPoint = ( ExtensionsRegistry.registerExtensionPoint({
27
27
  extensionPoint: 'resourceLabelFormatters',
28
28
  jsonSchema: {
29
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters', 'Contributes resource label formatting rules.'),
29
+ description: ( localizeWithPath(
30
+ 'vs/workbench/services/label/common/labelService',
31
+ 'vscode.extension.contributes.resourceLabelFormatters',
32
+ 'Contributes resource label formatting rules.'
33
+ )),
30
34
  type: 'array',
31
35
  items: {
32
36
  type: 'object',
@@ -34,35 +38,67 @@ const resourceLabelFormattersExtPoint = ( ExtensionsRegistry.registerExtensionPo
34
38
  properties: {
35
39
  scheme: {
36
40
  type: 'string',
37
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.scheme', 'URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.'),
41
+ description: ( localizeWithPath(
42
+ 'vs/workbench/services/label/common/labelService',
43
+ 'vscode.extension.contributes.resourceLabelFormatters.scheme',
44
+ 'URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.'
45
+ )),
38
46
  },
39
47
  authority: {
40
48
  type: 'string',
41
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.authority', 'URI authority on which to match the formatter on. Simple glob patterns are supported.'),
49
+ description: ( localizeWithPath(
50
+ 'vs/workbench/services/label/common/labelService',
51
+ 'vscode.extension.contributes.resourceLabelFormatters.authority',
52
+ 'URI authority on which to match the formatter on. Simple glob patterns are supported.'
53
+ )),
42
54
  },
43
55
  formatting: {
44
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.formatting', "Rules for formatting uri resource labels."),
56
+ description: ( localizeWithPath(
57
+ 'vs/workbench/services/label/common/labelService',
58
+ 'vscode.extension.contributes.resourceLabelFormatters.formatting',
59
+ "Rules for formatting uri resource labels."
60
+ )),
45
61
  type: 'object',
46
62
  properties: {
47
63
  label: {
48
64
  type: 'string',
49
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.label', "Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables.")
65
+ description: ( localizeWithPath(
66
+ 'vs/workbench/services/label/common/labelService',
67
+ 'vscode.extension.contributes.resourceLabelFormatters.label',
68
+ "Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables."
69
+ ))
50
70
  },
51
71
  separator: {
52
72
  type: 'string',
53
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.separator', "Separator to be used in the uri label display. '/' or '\' as an example.")
73
+ description: ( localizeWithPath(
74
+ 'vs/workbench/services/label/common/labelService',
75
+ 'vscode.extension.contributes.resourceLabelFormatters.separator',
76
+ "Separator to be used in the uri label display. '/' or '\' as an example."
77
+ ))
54
78
  },
55
79
  stripPathStartingSeparator: {
56
80
  type: 'boolean',
57
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.stripPathStartingSeparator', "Controls whether `${path}` substitutions should have starting separator characters stripped.")
81
+ description: ( localizeWithPath(
82
+ 'vs/workbench/services/label/common/labelService',
83
+ 'vscode.extension.contributes.resourceLabelFormatters.stripPathStartingSeparator',
84
+ "Controls whether `${path}` substitutions should have starting separator characters stripped."
85
+ ))
58
86
  },
59
87
  tildify: {
60
88
  type: 'boolean',
61
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.tildify', "Controls if the start of the uri label should be tildified when possible.")
89
+ description: ( localizeWithPath(
90
+ 'vs/workbench/services/label/common/labelService',
91
+ 'vscode.extension.contributes.resourceLabelFormatters.tildify',
92
+ "Controls if the start of the uri label should be tildified when possible."
93
+ ))
62
94
  },
63
95
  workspaceSuffix: {
64
96
  type: 'string',
65
- description: localizeWithPath('vs/workbench/services/label/common/labelService', 'vscode.extension.contributes.resourceLabelFormatters.formatting.workspaceSuffix', "Suffix appended to the workspace label.")
97
+ description: ( localizeWithPath(
98
+ 'vs/workbench/services/label/common/labelService',
99
+ 'vscode.extension.contributes.resourceLabelFormatters.formatting.workspaceSuffix',
100
+ "Suffix appended to the workspace label."
101
+ ))
66
102
  }
67
103
  }
68
104
  }
@@ -241,10 +277,18 @@ let LabelService = class LabelService extends Disposable {
241
277
  }
242
278
  doGetWorkspaceLabel(workspaceUri, options) {
243
279
  if (isUntitledWorkspace(workspaceUri, this.environmentService)) {
244
- return localizeWithPath('vs/workbench/services/label/common/labelService', 'untitledWorkspace', "Untitled (Workspace)");
280
+ return ( localizeWithPath(
281
+ 'vs/workbench/services/label/common/labelService',
282
+ 'untitledWorkspace',
283
+ "Untitled (Workspace)"
284
+ ));
245
285
  }
246
286
  if (isTemporaryWorkspace(workspaceUri)) {
247
- return localizeWithPath('vs/workbench/services/label/common/labelService', 'temporaryWorkspace', "Workspace");
287
+ return ( localizeWithPath(
288
+ 'vs/workbench/services/label/common/labelService',
289
+ 'temporaryWorkspace',
290
+ "Workspace"
291
+ ));
248
292
  }
249
293
  let filename = basename(workspaceUri);
250
294
  if (filename.endsWith(WORKSPACE_EXTENSION)) {
@@ -256,11 +300,21 @@ let LabelService = class LabelService extends Disposable {
256
300
  label = filename;
257
301
  break;
258
302
  case 2 :
259
- label = localizeWithPath('vs/workbench/services/label/common/labelService', 'workspaceNameVerbose', "{0} (Workspace)", this.getUriLabel(joinPath(dirname(workspaceUri), filename)));
303
+ label = ( localizeWithPath(
304
+ 'vs/workbench/services/label/common/labelService',
305
+ 'workspaceNameVerbose',
306
+ "{0} (Workspace)",
307
+ this.getUriLabel(joinPath(dirname(workspaceUri), filename))
308
+ ));
260
309
  break;
261
310
  case 1 :
262
311
  default:
263
- label = localizeWithPath('vs/workbench/services/label/common/labelService', 'workspaceName', "{0} (Workspace)", filename);
312
+ label = ( localizeWithPath(
313
+ 'vs/workbench/services/label/common/labelService',
314
+ 'workspaceName',
315
+ "{0} (Workspace)",
316
+ filename
317
+ ));
264
318
  break;
265
319
  }
266
320
  if (options?.verbose === 0 ) {
@@ -48,8 +48,16 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService {
48
48
  availableFileSystems.unshift(Schemas.vscodeRemote);
49
49
  }
50
50
  let workspacePath = await this.fileDialogService.showSaveDialog({
51
- saveLabel: mnemonicButtonLabel(localizeWithPath('vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService', 'save', "Save")),
52
- title: localizeWithPath('vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService', 'saveWorkspace', "Save Workspace"),
51
+ saveLabel: mnemonicButtonLabel(( localizeWithPath(
52
+ 'vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService',
53
+ 'save',
54
+ "Save"
55
+ ))),
56
+ title: ( localizeWithPath(
57
+ 'vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService',
58
+ 'saveWorkspace',
59
+ "Save Workspace"
60
+ )),
53
61
  filters: WORKSPACE_FILTER,
54
62
  defaultUri: joinPath(await this.fileDialogService.defaultWorkspacePath(), this.getNewWorkspaceName()),
55
63
  availableFileSystems
@@ -247,12 +255,20 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService {
247
255
  }
248
256
  }
249
257
  onInvalidWorkspaceConfigurationFileError() {
250
- const message = localizeWithPath('vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService', 'errorInvalidTaskConfiguration', "Unable to write into workspace configuration file. Please open the file to correct errors/warnings in it and try again.");
258
+ const message = ( localizeWithPath(
259
+ 'vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService',
260
+ 'errorInvalidTaskConfiguration',
261
+ "Unable to write into workspace configuration file. Please open the file to correct errors/warnings in it and try again."
262
+ ));
251
263
  this.askToOpenWorkspaceConfigurationFile(message);
252
264
  }
253
265
  askToOpenWorkspaceConfigurationFile(message) {
254
266
  this.notificationService.prompt(Severity.Error, message, [{
255
- label: localizeWithPath('vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService', 'openWorkspaceConfigurationFile', "Open Workspace Configuration"),
267
+ label: ( localizeWithPath(
268
+ 'vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService',
269
+ 'openWorkspaceConfigurationFile',
270
+ "Open Workspace Configuration"
271
+ )),
256
272
  run: () => this.commandService.executeCommand('workbench.action.openWorkspaceConfigFile')
257
273
  }]);
258
274
  }