@codingame/monaco-vscode-configuration-service-override 26.1.1 → 26.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-configuration-service-override",
3
- "version": "26.1.1",
3
+ "version": "26.2.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - configuration service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "26.1.1",
19
- "@codingame/monaco-vscode-files-service-override": "26.1.1"
18
+ "@codingame/monaco-vscode-api": "26.2.0",
19
+ "@codingame/monaco-vscode-files-service-override": "26.2.0"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -62,12 +62,12 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
62
62
  if (workspaces.length === 1) {
63
63
  const workspaceFile = workspaces[0];
64
64
  this.notificationService.prompt(Severity.Info, ( localize(
65
- 13961,
65
+ 14150,
66
66
  "This folder contains a workspace file '{0}'. Do you want to open it? [Learn more]({1}) about workspace files.",
67
67
  workspaceFile,
68
68
  "https://go.microsoft.com/fwlink/?linkid=2025315"
69
69
  )), [{
70
- label: ( localize(13962, "Open Workspace")),
70
+ label: ( localize(14151, "Open Workspace")),
71
71
  run: () => this.hostService.openWindow([{
72
72
  workspaceUri: joinPath(folder, workspaceFile)
73
73
  }])
@@ -78,16 +78,16 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
78
78
  }
79
79
  else if (workspaces.length > 1) {
80
80
  this.notificationService.prompt(Severity.Info, ( localize(
81
- 13963,
81
+ 14152,
82
82
  "This folder contains multiple workspace files. Do you want to open one? [Learn more]({0}) about workspace files.",
83
83
  "https://go.microsoft.com/fwlink/?linkid=2025315"
84
84
  )), [{
85
- label: ( localize(13964, "Select Workspace")),
85
+ label: ( localize(14153, "Select Workspace")),
86
86
  run: () => {
87
87
  this.quickInputService.pick(( workspaces.map(workspace => ({
88
88
  label: workspace
89
89
  }))), {
90
- placeHolder: ( localize(13965, "Select a workspace to open"))
90
+ placeHolder: ( localize(14154, "Select a workspace to open"))
91
91
  }).then(pick => {
92
92
  if (pick) {
93
93
  this.hostService.openWindow([{
@@ -109,7 +109,7 @@ registerAction2(class extends Action2 {
109
109
  constructor() {
110
110
  super({
111
111
  id: "workbench.action.openWorkspaceFromEditor",
112
- title: ( localize2(13962, "Open Workspace")),
112
+ title: ( localize2(14151, "Open Workspace")),
113
113
  f1: false,
114
114
  menu: {
115
115
  id: MenuId.EditorContent,
@@ -124,7 +124,7 @@ registerAction2(class extends Action2 {
124
124
  if (contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
125
125
  const workspaceConfiguration = contextService.getWorkspace().configuration;
126
126
  if (workspaceConfiguration && isEqual(workspaceConfiguration, uri)) {
127
- notificationService.info(( localize(13966, "This workspace is already open.")));
127
+ notificationService.info(( localize(14155, "This workspace is already open.")));
128
128
  return;
129
129
  }
130
130
  }
@@ -1324,7 +1324,7 @@ let RegisterConfigurationSchemasContribution = class RegisterConfigurationSchema
1324
1324
  } : workspaceSettingsSchema;
1325
1325
  const configDefaultsSchema = {
1326
1326
  type: "object",
1327
- description: ( localize(14144, "Contribute defaults for configurations")),
1327
+ description: ( localize(14334, "Contribute defaults for configurations")),
1328
1328
  properties: Object.assign(
1329
1329
  {},
1330
1330
  this.filterDefaultOverridableProperties(machineOverridableSettings.properties),
@@ -1467,7 +1467,7 @@ configurationRegistry.registerConfiguration({
1467
1467
  properties: {
1468
1468
  [APPLY_ALL_PROFILES_SETTING]: {
1469
1469
  "type": "array",
1470
- description: ( localize(14145, "Configure settings to be applied for all profiles.")),
1470
+ description: ( localize(14335, "Configure settings to be applied for all profiles.")),
1471
1471
  "default": [],
1472
1472
  "scope": ConfigurationScope.APPLICATION,
1473
1473
  additionalProperties: true,
@@ -163,7 +163,7 @@ let ConfigurationEditing = class ConfigurationEditing {
163
163
  );
164
164
  }
165
165
  throw ( new ConfigurationEditingError(( localize(
166
- 14146,
166
+ 14336,
167
167
  "Error while writing to {0}. {1}",
168
168
  this.stringifyTarget(operation.target),
169
169
  error.message
@@ -244,7 +244,7 @@ let ConfigurationEditing = class ConfigurationEditing {
244
244
  }
245
245
  }
246
246
  onInvalidConfigurationError(error, operation) {
247
- const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(14147, "Open Tasks Configuration")) : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(14148, "Open Launch Configuration")) : operation.workspaceStandAloneConfigurationKey === MCP_CONFIGURATION_KEY ? ( localize(14149, "Open MCP Configuration")) : null;
247
+ const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(14337, "Open Tasks Configuration")) : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(14338, "Open Launch Configuration")) : operation.workspaceStandAloneConfigurationKey === MCP_CONFIGURATION_KEY ? ( localize(14339, "Open MCP Configuration")) : null;
248
248
  if (openStandAloneConfigurationActionLabel) {
249
249
  this.notificationService.prompt(Severity.Error, error.message, [{
250
250
  label: openStandAloneConfigurationActionLabel,
@@ -252,16 +252,16 @@ let ConfigurationEditing = class ConfigurationEditing {
252
252
  }]);
253
253
  } else {
254
254
  this.notificationService.prompt(Severity.Error, error.message, [{
255
- label: ( localize(14150, "Open Settings")),
255
+ label: ( localize(14340, "Open Settings")),
256
256
  run: () => this.openSettings(operation)
257
257
  }]);
258
258
  }
259
259
  }
260
260
  onConfigurationFileDirtyError(error, operation, scopes) {
261
- const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(14147, "Open Tasks Configuration")) : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(14148, "Open Launch Configuration")) : null;
261
+ const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(14337, "Open Tasks Configuration")) : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(14338, "Open Launch Configuration")) : null;
262
262
  if (openStandAloneConfigurationActionLabel) {
263
263
  this.notificationService.prompt(Severity.Error, error.message, [{
264
- label: ( localize(14151, "Save and Retry")),
264
+ label: ( localize(14341, "Save and Retry")),
265
265
  run: () => {
266
266
  const key = operation.key ? `${operation.workspaceStandAloneConfigurationKey}.${operation.key}` : operation.workspaceStandAloneConfigurationKey;
267
267
  this.writeConfiguration(operation.target, {
@@ -278,7 +278,7 @@ let ConfigurationEditing = class ConfigurationEditing {
278
278
  }]);
279
279
  } else {
280
280
  this.notificationService.prompt(Severity.Error, error.message, [{
281
- label: ( localize(14151, "Save and Retry")),
281
+ label: ( localize(14341, "Save and Retry")),
282
282
  run: () => this.writeConfiguration(operation.target, {
283
283
  key: operation.key,
284
284
  value: operation.value
@@ -287,7 +287,7 @@ let ConfigurationEditing = class ConfigurationEditing {
287
287
  scopes
288
288
  })
289
289
  }, {
290
- label: ( localize(14150, "Open Settings")),
290
+ label: ( localize(14340, "Open Settings")),
291
291
  run: () => this.openSettings(operation)
292
292
  }]);
293
293
  }
@@ -335,61 +335,61 @@ let ConfigurationEditing = class ConfigurationEditing {
335
335
  switch (error) {
336
336
  case ConfigurationEditingErrorCode.ERROR_POLICY_CONFIGURATION:
337
337
  return localize(
338
- 14152,
338
+ 14342,
339
339
  "Unable to write {0} because it is configured in system policy.",
340
340
  operation.key
341
341
  );
342
342
  case ConfigurationEditingErrorCode.ERROR_UNKNOWN_KEY:
343
343
  return localize(
344
- 14153,
344
+ 14343,
345
345
  "Unable to write to {0} because {1} is not a registered configuration.",
346
346
  this.stringifyTarget(target),
347
347
  operation.key
348
348
  );
349
349
  case ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_CONFIGURATION_APPLICATION:
350
350
  return localize(
351
- 14154,
351
+ 14344,
352
352
  "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.",
353
353
  operation.key
354
354
  );
355
355
  case ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_CONFIGURATION_MACHINE:
356
356
  return localize(
357
- 14155,
357
+ 14345,
358
358
  "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.",
359
359
  operation.key
360
360
  );
361
361
  case ConfigurationEditingErrorCode.ERROR_INVALID_FOLDER_CONFIGURATION:
362
362
  return localize(
363
- 14156,
363
+ 14346,
364
364
  "Unable to write to Folder Settings because {0} does not support the folder resource scope.",
365
365
  operation.key
366
366
  );
367
367
  case ConfigurationEditingErrorCode.ERROR_INVALID_USER_TARGET:
368
368
  return localize(
369
- 14157,
369
+ 14347,
370
370
  "Unable to write to User Settings because {0} does not support for global scope.",
371
371
  operation.key
372
372
  );
373
373
  case ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_TARGET:
374
374
  return localize(
375
- 14158,
375
+ 14348,
376
376
  "Unable to write to Workspace Settings because {0} does not support for workspace scope in a multi folder workspace.",
377
377
  operation.key
378
378
  );
379
379
  case ConfigurationEditingErrorCode.ERROR_INVALID_FOLDER_TARGET:
380
380
  return localize(
381
- 14159,
381
+ 14349,
382
382
  "Unable to write to Folder Settings because no resource is provided."
383
383
  );
384
384
  case ConfigurationEditingErrorCode.ERROR_INVALID_RESOURCE_LANGUAGE_CONFIGURATION:
385
385
  return localize(
386
- 14160,
386
+ 14350,
387
387
  "Unable to write to Language Settings because {0} is not a resource language setting.",
388
388
  operation.key
389
389
  );
390
390
  case ConfigurationEditingErrorCode.ERROR_NO_WORKSPACE_OPENED:
391
391
  return localize(
392
- 14161,
392
+ 14351,
393
393
  "Unable to write to {0} because no workspace is opened. Please open a workspace first and try again.",
394
394
  this.stringifyTarget(target)
395
395
  );
@@ -397,36 +397,36 @@ let ConfigurationEditing = class ConfigurationEditing {
397
397
  {
398
398
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
399
399
  return localize(
400
- 14162,
400
+ 14352,
401
401
  "Unable to write into the tasks configuration file. Please open it to correct errors/warnings in it and try again."
402
402
  );
403
403
  }
404
404
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
405
405
  return localize(
406
- 14163,
406
+ 14353,
407
407
  "Unable to write into the launch configuration file. Please open it to correct errors/warnings in it and try again."
408
408
  );
409
409
  }
410
410
  if (operation.workspaceStandAloneConfigurationKey === MCP_CONFIGURATION_KEY) {
411
411
  return localize(
412
- 14164,
412
+ 14354,
413
413
  "Unable to write into the MCP configuration file. Please open it to correct errors/warnings in it and try again."
414
414
  );
415
415
  }
416
416
  switch (target) {
417
417
  case EditableConfigurationTarget.USER_LOCAL:
418
418
  return localize(
419
- 14165,
419
+ 14355,
420
420
  "Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again."
421
421
  );
422
422
  case EditableConfigurationTarget.USER_REMOTE:
423
423
  return localize(
424
- 14166,
424
+ 14356,
425
425
  "Unable to write into remote user settings. Please open the remote user settings to correct errors/warnings in it and try again."
426
426
  );
427
427
  case EditableConfigurationTarget.WORKSPACE:
428
428
  return localize(
429
- 14167,
429
+ 14357,
430
430
  "Unable to write into workspace settings. Please open the workspace settings to correct errors/warnings in the file and try again."
431
431
  );
432
432
  case EditableConfigurationTarget.WORKSPACE_FOLDER:
@@ -439,7 +439,7 @@ let ConfigurationEditing = class ConfigurationEditing {
439
439
  }
440
440
  }
441
441
  return localize(
442
- 14168,
442
+ 14358,
443
443
  "Unable to write into folder settings. Please open the '{0}' folder settings to correct errors/warnings in it and try again.",
444
444
  workspaceFolderName
445
445
  );
@@ -452,36 +452,36 @@ let ConfigurationEditing = class ConfigurationEditing {
452
452
  {
453
453
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
454
454
  return localize(
455
- 14169,
455
+ 14359,
456
456
  "Unable to write into tasks configuration file because the file has unsaved changes. Please save it first and then try again."
457
457
  );
458
458
  }
459
459
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
460
460
  return localize(
461
- 14170,
461
+ 14360,
462
462
  "Unable to write into launch configuration file because the file has unsaved changes. Please save it first and then try again."
463
463
  );
464
464
  }
465
465
  if (operation.workspaceStandAloneConfigurationKey === MCP_CONFIGURATION_KEY) {
466
466
  return localize(
467
- 14171,
467
+ 14361,
468
468
  "Unable to write into MCP configuration file because the file has unsaved changes. Please save it first and then try again."
469
469
  );
470
470
  }
471
471
  switch (target) {
472
472
  case EditableConfigurationTarget.USER_LOCAL:
473
473
  return localize(
474
- 14172,
474
+ 14362,
475
475
  "Unable to write into user settings because the file has unsaved changes. Please save the user settings file first and then try again."
476
476
  );
477
477
  case EditableConfigurationTarget.USER_REMOTE:
478
478
  return localize(
479
- 14173,
479
+ 14363,
480
480
  "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."
481
481
  );
482
482
  case EditableConfigurationTarget.WORKSPACE:
483
483
  return localize(
484
- 14174,
484
+ 14364,
485
485
  "Unable to write into workspace settings because the file has unsaved changes. Please save the workspace settings file first and then try again."
486
486
  );
487
487
  case EditableConfigurationTarget.WORKSPACE_FOLDER:
@@ -494,7 +494,7 @@ let ConfigurationEditing = class ConfigurationEditing {
494
494
  }
495
495
  }
496
496
  return localize(
497
- 14175,
497
+ 14365,
498
498
  "Unable to write into folder settings because the file has unsaved changes. Please save the '{0}' folder settings file first and then try again.",
499
499
  workspaceFolderName
500
500
  );
@@ -506,47 +506,47 @@ let ConfigurationEditing = class ConfigurationEditing {
506
506
  case ConfigurationEditingErrorCode.ERROR_CONFIGURATION_FILE_MODIFIED_SINCE:
507
507
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
508
508
  return localize(
509
- 14176,
509
+ 14366,
510
510
  "Unable to write into tasks configuration file because the content of the file is newer."
511
511
  );
512
512
  }
513
513
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
514
514
  return localize(
515
- 14177,
515
+ 14367,
516
516
  "Unable to write into launch configuration file because the content of the file is newer."
517
517
  );
518
518
  }
519
519
  if (operation.workspaceStandAloneConfigurationKey === MCP_CONFIGURATION_KEY) {
520
520
  return localize(
521
- 14178,
521
+ 14368,
522
522
  "Unable to write into MCP configuration file because the content of the file is newer."
523
523
  );
524
524
  }
525
525
  switch (target) {
526
526
  case EditableConfigurationTarget.USER_LOCAL:
527
527
  return localize(
528
- 14179,
528
+ 14369,
529
529
  "Unable to write into user settings because the content of the file is newer."
530
530
  );
531
531
  case EditableConfigurationTarget.USER_REMOTE:
532
532
  return localize(
533
- 14180,
533
+ 14370,
534
534
  "Unable to write into remote user settings because the content of the file is newer."
535
535
  );
536
536
  case EditableConfigurationTarget.WORKSPACE:
537
537
  return localize(
538
- 14181,
538
+ 14371,
539
539
  "Unable to write into workspace settings because the content of the file is newer."
540
540
  );
541
541
  case EditableConfigurationTarget.WORKSPACE_FOLDER:
542
542
  return localize(
543
- 14182,
543
+ 14372,
544
544
  "Unable to write into folder settings because the content of the file is newer."
545
545
  );
546
546
  }
547
547
  case ConfigurationEditingErrorCode.ERROR_INTERNAL:
548
548
  return localize(
549
- 14183,
549
+ 14373,
550
550
  "Unable to write to {0} because of an internal error.",
551
551
  this.stringifyTarget(target)
552
552
  );
@@ -555,13 +555,13 @@ let ConfigurationEditing = class ConfigurationEditing {
555
555
  stringifyTarget(target) {
556
556
  switch (target) {
557
557
  case EditableConfigurationTarget.USER_LOCAL:
558
- return localize(14184, "User Settings");
558
+ return localize(14374, "User Settings");
559
559
  case EditableConfigurationTarget.USER_REMOTE:
560
- return localize(14185, "Remote User Settings");
560
+ return localize(14375, "Remote User Settings");
561
561
  case EditableConfigurationTarget.WORKSPACE:
562
- return localize(14186, "Workspace Settings");
562
+ return localize(14376, "Workspace Settings");
563
563
  case EditableConfigurationTarget.WORKSPACE_FOLDER:
564
- return localize(14187, "Folder Settings");
564
+ return localize(14377, "Folder Settings");
565
565
  default:
566
566
  return "";
567
567
  }
@@ -147,7 +147,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
147
147
  if (!isUndefinedOrNull(value)) {
148
148
  if (typeof value !== "string") {
149
149
  throw ( new VariableError(VariableKind.Command, ( localize(
150
- 14189,
150
+ 14379,
151
151
  "Cannot substitute command variable '{0}' because command did not return a result of type string.",
152
152
  commandId
153
153
  ))));
@@ -247,7 +247,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
247
247
  async showUserInput(section, variable, inputInfos, variableToCommandMap) {
248
248
  if (!inputInfos) {
249
249
  throw ( new VariableError(VariableKind.Input, ( localize(
250
- 14190,
250
+ 14380,
251
251
  "Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.",
252
252
  variable,
253
253
  "inputs"
@@ -257,7 +257,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
257
257
  if (info) {
258
258
  const missingAttribute = attrName => {
259
259
  throw ( new VariableError(VariableKind.Input, ( localize(
260
- 14191,
260
+ 14381,
261
261
  "Input variable '{0}' is of type '{1}' and must include '{2}'.",
262
262
  variable,
263
263
  info.type,
@@ -315,7 +315,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
315
315
  };
316
316
  const topValue = variableToCommandMap?.[`input:${variable}`] ?? previousPickedValue ?? info.default;
317
317
  if (value === info.default) {
318
- item.description = ( localize(14192, "(Default)"));
318
+ item.description = ( localize(14382, "(Default)"));
319
319
  picks.unshift(item);
320
320
  } else if (value === topValue) {
321
321
  picks.unshift(item);
@@ -353,7 +353,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
353
353
  };
354
354
  }
355
355
  throw ( new VariableError(VariableKind.Input, ( localize(
356
- 14193,
356
+ 14383,
357
357
  "Cannot substitute input variable '{0}' because command '{1}' did not return a result of type string.",
358
358
  variable,
359
359
  info.command
@@ -362,14 +362,14 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
362
362
  }
363
363
  default:
364
364
  throw ( new VariableError(VariableKind.Input, ( localize(
365
- 14194,
365
+ 14384,
366
366
  "Input variable '{0}' can only be of type 'promptString', 'pickString', or 'command'.",
367
367
  variable
368
368
  ))));
369
369
  }
370
370
  }
371
371
  throw ( new VariableError(VariableKind.Input, ( localize(
372
- 14195,
372
+ 14385,
373
373
  "Undefined input variable '{0}' encountered. Remove or define '{0}' to continue.",
374
374
  variable
375
375
  ))));
@@ -72,8 +72,8 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService exte
72
72
  availableFileSystems.unshift(Schemas.vscodeRemote);
73
73
  }
74
74
  let workspacePath = await this.fileDialogService.showSaveDialog({
75
- saveLabel: ( localize(15058, "Save")),
76
- title: ( localize(15059, "Save Workspace")),
75
+ saveLabel: ( localize(15248, "Save")),
76
+ title: ( localize(15249, "Save Workspace")),
77
77
  filters: WORKSPACE_FILTER,
78
78
  defaultUri: joinPath(
79
79
  await this.fileDialogService.defaultWorkspacePath(),
@@ -303,14 +303,14 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService exte
303
303
  }
304
304
  onInvalidWorkspaceConfigurationFileError() {
305
305
  const message = ( localize(
306
- 15060,
306
+ 15250,
307
307
  "Unable to write into workspace configuration file. Please open the file to correct errors/warnings in it and try again."
308
308
  ));
309
309
  this.askToOpenWorkspaceConfigurationFile(message);
310
310
  }
311
311
  askToOpenWorkspaceConfigurationFile(message) {
312
312
  this.notificationService.prompt(Severity.Error, message, [{
313
- label: ( localize(15061, "Open Workspace Configuration")),
313
+ label: ( localize(15251, "Open Workspace Configuration")),
314
314
  run: () => this.commandService.executeCommand("workbench.action.openWorkspaceConfigFile")
315
315
  }]);
316
316
  }