@codingame/monaco-vscode-configuration-service-override 13.1.7 → 14.0.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.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { IEditorOverrideServices } from "@codingame/monaco-vscode-api/vscod
4
4
  import { ConfigurationScope, type IConfigurationDefaults, type IConfigurationNode, type IConfigurationRegistry } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry";
5
5
  import type { IFileWriteOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
6
6
  import type { IAnyWorkspaceIdentifier, IEmptyWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
7
- import type { IStoredWorkspace, IWorkspaceFolderCreationData } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
7
+ import type { IStoredWorkspace, IWorkspaceFolderCreationData } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces";
8
8
  import type { IColorCustomizations, IThemeScopedColorCustomizations } from "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common/vscode/vs/workbench/services/themes/common/workbenchThemeService";
9
9
  declare const defaultUserConfigurationFile: URI;
10
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-configuration-service-override",
3
- "version": "13.1.7",
3
+ "version": "14.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - configuration service-override",
6
6
  "keywords": [],
@@ -15,14 +15,14 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common": "13.1.7",
19
- "@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "13.1.7",
20
- "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common": "13.1.7",
21
- "@codingame/monaco-vscode-api": "13.1.7",
22
- "@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common": "13.1.7",
23
- "@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.7",
24
- "@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common": "13.1.7",
25
- "@codingame/monaco-vscode-files-service-override": "13.1.7"
18
+ "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.0",
19
+ "@codingame/monaco-vscode-407531d3-fdae-5387-8c41-49ba0e9574b5-common": "14.0.0",
20
+ "@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common": "14.0.0",
21
+ "@codingame/monaco-vscode-api": "14.0.0",
22
+ "@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common": "14.0.0",
23
+ "@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common": "14.0.0",
24
+ "@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common": "14.0.0",
25
+ "@codingame/monaco-vscode-files-service-override": "14.0.0"
26
26
  },
27
27
  "main": "index.js",
28
28
  "module": "index.js",
@@ -5,7 +5,7 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
5
5
  import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
6
6
  import { Extensions as Extensions$1, configurationDefaultsSchemaId, ConfigurationScope, OVERRIDE_PROPERTY_REGEX, validateProperty, parseScope, getAllConfigurationProperties, getDefaultValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
7
7
  import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
8
- import { tasksSchemaId, launchSchemaId, workspaceSettingsSchemaId } from '@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration';
8
+ import { tasksSchemaId, launchSchemaId, workspaceSettingsSchemaId } from '@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration';
9
9
  import { isObject, isUndefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
10
10
  import { ExtensionIdentifierMap } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
11
11
  import { Extensions as Extensions$2 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
@@ -21,29 +21,29 @@ const configurationEntrySchema = {
21
21
  properties: {
22
22
  title: {
23
23
  description: ( localize(
24
- 2388,
24
+ 2428,
25
25
  'A title for the current category of settings. This label will be rendered in the Settings editor as a subheading. If the title is the same as the extension display name, then the category will be grouped under the main extension heading.'
26
26
  )),
27
27
  type: 'string'
28
28
  },
29
29
  order: {
30
30
  description: ( localize(
31
- 2389,
31
+ 2429,
32
32
  'When specified, gives the order of this category of settings relative to other categories.'
33
33
  )),
34
34
  type: 'integer'
35
35
  },
36
36
  properties: {
37
- description: ( localize(2390, 'Description of the configuration properties.')),
37
+ description: ( localize(2430, 'Description of the configuration properties.')),
38
38
  type: 'object',
39
39
  propertyNames: {
40
40
  pattern: '\\S+',
41
- patternErrorMessage: ( localize(2391, 'Property should not be empty.')),
41
+ patternErrorMessage: ( localize(2431, 'Property should not be empty.')),
42
42
  },
43
43
  additionalProperties: {
44
44
  anyOf: [
45
45
  {
46
- title: ( localize(2392, 'Schema of the configuration property.')),
46
+ title: ( localize(2432, 'Schema of the configuration property.')),
47
47
  $ref: 'http://json-schema.org/draft-07/schema#'
48
48
  },
49
49
  {
@@ -54,30 +54,30 @@ const configurationEntrySchema = {
54
54
  enum: ['application', 'machine', 'window', 'resource', 'language-overridable', 'machine-overridable'],
55
55
  default: 'window',
56
56
  enumDescriptions: [
57
- ( localize(2393, "Configuration that can be configured only in the user settings.")),
57
+ ( localize(2433, "Configuration that can be configured only in the user settings.")),
58
58
  ( localize(
59
- 2394,
59
+ 2434,
60
60
  "Configuration that can be configured only in the user settings or only in the remote settings."
61
61
  )),
62
62
  ( localize(
63
- 2395,
63
+ 2435,
64
64
  "Configuration that can be configured in the user, remote or workspace settings."
65
65
  )),
66
66
  ( localize(
67
- 2396,
67
+ 2436,
68
68
  "Configuration that can be configured in the user, remote, workspace or folder settings."
69
69
  )),
70
70
  ( localize(
71
- 2397,
71
+ 2437,
72
72
  "Resource configuration that can be configured in language specific settings."
73
73
  )),
74
74
  ( localize(
75
- 2398,
75
+ 2438,
76
76
  "Machine configuration that can be configured also in workspace or folder settings."
77
77
  ))
78
78
  ],
79
79
  markdownDescription: ( localize(
80
- 2399,
80
+ 2439,
81
81
  "Scope in which the configuration is applicable. Available scopes are `application`, `machine`, `window`, `resource`, and `machine-overridable`."
82
82
  ))
83
83
  },
@@ -86,14 +86,14 @@ const configurationEntrySchema = {
86
86
  items: {
87
87
  type: 'string',
88
88
  },
89
- description: ( localize(2400, 'Descriptions for enum values'))
89
+ description: ( localize(2440, 'Descriptions for enum values'))
90
90
  },
91
91
  markdownEnumDescriptions: {
92
92
  type: 'array',
93
93
  items: {
94
94
  type: 'string',
95
95
  },
96
- description: ( localize(2401, 'Descriptions for enum values in the markdown format.'))
96
+ description: ( localize(2441, 'Descriptions for enum values in the markdown format.'))
97
97
  },
98
98
  enumItemLabels: {
99
99
  type: 'array',
@@ -101,26 +101,26 @@ const configurationEntrySchema = {
101
101
  type: 'string'
102
102
  },
103
103
  markdownDescription: ( localize(
104
- 2402,
104
+ 2442,
105
105
  'Labels for enum values to be displayed in the Settings editor. When specified, the {0} values still show after the labels, but less prominently.',
106
106
  '`enum`'
107
107
  ))
108
108
  },
109
109
  markdownDescription: {
110
110
  type: 'string',
111
- description: ( localize(2403, 'The description in the markdown format.'))
111
+ description: ( localize(2443, 'The description in the markdown format.'))
112
112
  },
113
113
  deprecationMessage: {
114
114
  type: 'string',
115
115
  description: ( localize(
116
- 2404,
116
+ 2444,
117
117
  'If set, the property is marked as deprecated and the given message is shown as an explanation.'
118
118
  ))
119
119
  },
120
120
  markdownDeprecationMessage: {
121
121
  type: 'string',
122
122
  description: ( localize(
123
- 2405,
123
+ 2445,
124
124
  'If set, the property is marked as deprecated and the given message is shown as an explanation in the markdown format.'
125
125
  ))
126
126
  },
@@ -128,29 +128,39 @@ const configurationEntrySchema = {
128
128
  type: 'string',
129
129
  enum: ['singlelineText', 'multilineText'],
130
130
  enumDescriptions: [
131
- ( localize(2406, 'The value will be shown in an inputbox.')),
132
- ( localize(2407, 'The value will be shown in a textarea.'))
131
+ ( localize(2446, 'The value will be shown in an inputbox.')),
132
+ ( localize(2447, 'The value will be shown in a textarea.'))
133
133
  ],
134
134
  default: 'singlelineText',
135
135
  description: ( localize(
136
- 2408,
136
+ 2448,
137
137
  'When specified, controls the presentation format of the string setting.'
138
138
  ))
139
139
  },
140
140
  order: {
141
141
  type: 'integer',
142
142
  description: ( localize(
143
- 2409,
143
+ 2449,
144
144
  'When specified, gives the order of this setting relative to other settings within the same category. Settings with an order property will be placed before settings without this property set.'
145
145
  ))
146
146
  },
147
147
  ignoreSync: {
148
148
  type: 'boolean',
149
149
  description: ( localize(
150
- 2410,
150
+ 2450,
151
151
  'When enabled, Settings Sync will not sync the user value of this configuration by default.'
152
152
  ))
153
153
  },
154
+ tags: {
155
+ type: 'array',
156
+ items: {
157
+ type: 'string'
158
+ },
159
+ markdownDescription: ( localize(
160
+ 2451,
161
+ 'A list of categories under which to place the setting. The category can then be searched up in the Settings editor. For example, specifying the `experimental` tag allows one to find the setting by searching `@tag:experimental`.'
162
+ )),
163
+ }
154
164
  }
155
165
  }
156
166
  ]
@@ -192,7 +202,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
192
202
  const registeredPropertyScheme = registeredProperties[key];
193
203
  if (registeredPropertyScheme?.disallowConfigurationDefault) {
194
204
  extension.collector.warn(( localize(
195
- 2411,
205
+ 2452,
196
206
  "Cannot register configuration defaults for '{0}'. This setting does not allow contributing configuration defaults.",
197
207
  key
198
208
  )));
@@ -202,7 +212,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
202
212
  if (!OVERRIDE_PROPERTY_REGEX.test(key)) {
203
213
  if (registeredPropertyScheme?.scope && !allowedScopes.includes(registeredPropertyScheme.scope)) {
204
214
  extension.collector.warn(( localize(
205
- 2412,
215
+ 2453,
206
216
  "Cannot register configuration defaults for '{0}'. Only defaults for machine-overridable, window, resource and language overridable scoped settings are supported.",
207
217
  key
208
218
  )));
@@ -220,7 +230,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
220
230
  extensionPoint: 'configuration',
221
231
  deps: [defaultConfigurationExtPoint],
222
232
  jsonSchema: {
223
- description: ( localize(2413, 'Contributes configuration settings.')),
233
+ description: ( localize(2454, 'Contributes configuration settings.')),
224
234
  oneOf: [
225
235
  configurationEntrySchema,
226
236
  {
@@ -246,7 +256,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
246
256
  function handleConfiguration(node, extension) {
247
257
  const configuration = deepClone(node);
248
258
  if (configuration.title && (typeof configuration.title !== 'string')) {
249
- extension.collector.error(( localize(2414, "'configuration.title' must be a string")));
259
+ extension.collector.error(( localize(2455, "'configuration.title' must be a string")));
250
260
  }
251
261
  validateProperties(configuration, extension);
252
262
  configuration.id = node.id || extension.description.identifier.value;
@@ -259,7 +269,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
259
269
  const properties = configuration.properties;
260
270
  if (properties) {
261
271
  if (typeof properties !== 'object') {
262
- extension.collector.error(( localize(2415, "'configuration.properties' must be an object")));
272
+ extension.collector.error(( localize(2456, "'configuration.properties' must be an object")));
263
273
  configuration.properties = {};
264
274
  }
265
275
  for (const key in properties) {
@@ -272,12 +282,12 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
272
282
  }
273
283
  if (( seenProperties.has(key))) {
274
284
  delete properties[key];
275
- extension.collector.warn(( localize(2416, "Cannot register '{0}'. This property is already registered.", key)));
285
+ extension.collector.warn(( localize(2457, "Cannot register '{0}'. This property is already registered.", key)));
276
286
  continue;
277
287
  }
278
288
  if (!isObject(propertyConfiguration)) {
279
289
  delete properties[key];
280
- extension.collector.error(( localize(2417, "configuration.properties property '{0}' must be an object", key)));
290
+ extension.collector.error(( localize(2458, "configuration.properties property '{0}' must be an object", key)));
281
291
  continue;
282
292
  }
283
293
  seenProperties.add(key);
@@ -287,7 +297,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
287
297
  const subNodes = configuration.allOf;
288
298
  if (subNodes) {
289
299
  extension.collector.error(( localize(
290
- 2418,
300
+ 2459,
291
301
  "'configuration.allOf' is deprecated and should no longer be used. Instead, pass multiple configuration sections as an array to the 'configuration' contribution point."
292
302
  )));
293
303
  for (const node of subNodes) {
@@ -330,7 +340,7 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
330
340
  'folders': {
331
341
  minItems: 0,
332
342
  uniqueItems: true,
333
- description: ( localize(2419, "List of folders to be loaded in the workspace.")),
343
+ description: ( localize(2460, "List of folders to be loaded in the workspace.")),
334
344
  items: {
335
345
  type: 'object',
336
346
  defaultSnippets: [{ body: { path: '$1' } }],
@@ -339,13 +349,13 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
339
349
  path: {
340
350
  type: 'string',
341
351
  description: ( localize(
342
- 2420,
352
+ 2461,
343
353
  "A file path. e.g. `/root/folderA` or `./folderA` for a relative path that will be resolved against the location of the workspace file."
344
354
  ))
345
355
  },
346
356
  name: {
347
357
  type: 'string',
348
- description: ( localize(2421, "An optional name for the folder. "))
358
+ description: ( localize(2462, "An optional name for the folder. "))
349
359
  }
350
360
  },
351
361
  required: ['path']
@@ -353,11 +363,11 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
353
363
  properties: {
354
364
  uri: {
355
365
  type: 'string',
356
- description: ( localize(2422, "URI of the folder"))
366
+ description: ( localize(2463, "URI of the folder"))
357
367
  },
358
368
  name: {
359
369
  type: 'string',
360
- description: ( localize(2421, "An optional name for the folder. "))
370
+ description: ( localize(2462, "An optional name for the folder. "))
361
371
  }
362
372
  },
363
373
  required: ['uri']
@@ -367,39 +377,39 @@ jsonRegistry.registerSchema('vscode://schemas/workspaceConfig', {
367
377
  'settings': {
368
378
  type: 'object',
369
379
  default: {},
370
- description: ( localize(2423, "Workspace settings")),
380
+ description: ( localize(2464, "Workspace settings")),
371
381
  $ref: workspaceSettingsSchemaId
372
382
  },
373
383
  'launch': {
374
384
  type: 'object',
375
385
  default: { configurations: [], compounds: [] },
376
- description: ( localize(2424, "Workspace launch configurations")),
386
+ description: ( localize(2465, "Workspace launch configurations")),
377
387
  $ref: launchSchemaId
378
388
  },
379
389
  'tasks': {
380
390
  type: 'object',
381
391
  default: { version: '2.0.0', tasks: [] },
382
- description: ( localize(2425, "Workspace task configurations")),
392
+ description: ( localize(2466, "Workspace task configurations")),
383
393
  $ref: tasksSchemaId
384
394
  },
385
395
  'extensions': {
386
396
  type: 'object',
387
397
  default: {},
388
- description: ( localize(2426, "Workspace extensions")),
398
+ description: ( localize(2467, "Workspace extensions")),
389
399
  $ref: 'vscode://schemas/extensions'
390
400
  },
391
401
  'remoteAuthority': {
392
402
  type: 'string',
393
403
  doNotSuggest: true,
394
- description: ( localize(2427, "The remote server where the workspace is located.")),
404
+ description: ( localize(2468, "The remote server where the workspace is located.")),
395
405
  },
396
406
  'transient': {
397
407
  type: 'boolean',
398
408
  doNotSuggest: true,
399
- description: ( localize(2428, "A transient workspace will disappear when restarting or reloading.")),
409
+ description: ( localize(2469, "A transient workspace will disappear when restarting or reloading.")),
400
410
  }
401
411
  },
402
- errorMessage: ( localize(2429, "Unknown workspace configuration property"))
412
+ errorMessage: ( localize(2470, "Unknown workspace configuration property"))
403
413
  });
404
414
  class SettingsTableRenderer extends Disposable {
405
415
  constructor() {
@@ -415,7 +425,7 @@ class SettingsTableRenderer extends Disposable {
415
425
  : [];
416
426
  const properties = getAllConfigurationProperties(configuration);
417
427
  const contrib = properties ? ( Object.keys(properties)) : [];
418
- const headers = [( localize(2430, "ID")), ( localize(2431, "Description")), ( localize(2432, "Default"))];
428
+ const headers = [( localize(2471, "ID")), ( localize(2472, "Description")), ( localize(2473, "Default"))];
419
429
  const rows = ( contrib.sort((a, b) => a.localeCompare(b))
420
430
  .map(key => {
421
431
  return [
@@ -435,7 +445,7 @@ class SettingsTableRenderer extends Disposable {
435
445
  }
436
446
  ( Registry.as(Extensions$2.ExtensionFeaturesRegistry)).registerExtensionFeature({
437
447
  id: 'configuration',
438
- label: ( localize(2433, "Settings")),
448
+ label: ( localize(2474, "Settings")),
439
449
  access: {
440
450
  canToggle: false
441
451
  },
@@ -15,11 +15,11 @@ import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/s
15
15
  import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
16
16
  import { StorageScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
17
17
  import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
18
- import { isVirtualWorkspace } from '@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common/vscode/vs/platform/workspace/common/virtualWorkspace';
18
+ import { isVirtualWorkspace } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspace/common/virtualWorkspace';
19
19
  import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
20
20
  import { ResourceContextKey, ActiveEditorContext, TemporaryWorkspaceContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
21
21
  import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
22
- import { TEXT_FILE_EDITOR_ID } from '@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common/vscode/vs/workbench/contrib/files/common/files';
22
+ import { TEXT_FILE_EDITOR_ID } from '@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common/vscode/vs/workbench/contrib/files/common/files';
23
23
  import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
24
24
 
25
25
  let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Disposable {
@@ -51,12 +51,12 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
51
51
  if (workspaces.length === 1) {
52
52
  const workspaceFile = workspaces[0];
53
53
  this.notificationService.prompt(Severity.Info, ( localize(
54
- 11135,
54
+ 11330,
55
55
  "This folder contains a workspace file '{0}'. Do you want to open it? [Learn more]({1}) about workspace files.",
56
56
  workspaceFile,
57
57
  'https://go.microsoft.com/fwlink/?linkid=2025315'
58
58
  )), [{
59
- label: ( localize(11136, "Open Workspace")),
59
+ label: ( localize(11331, "Open Workspace")),
60
60
  run: () => this.hostService.openWindow([{ workspaceUri: joinPath(folder, workspaceFile) }])
61
61
  }], {
62
62
  neverShowAgain,
@@ -65,13 +65,13 @@ let WorkspacesFinderContribution = class WorkspacesFinderContribution extends Di
65
65
  }
66
66
  else if (workspaces.length > 1) {
67
67
  this.notificationService.prompt(Severity.Info, ( localize(
68
- 11137,
68
+ 11332,
69
69
  "This folder contains multiple workspace files. Do you want to open one? [Learn more]({0}) about workspace files.",
70
70
  'https://go.microsoft.com/fwlink/?linkid=2025315'
71
71
  )), [{
72
- label: ( localize(11138, "Select Workspace")),
72
+ label: ( localize(11333, "Select Workspace")),
73
73
  run: () => {
74
- this.quickInputService.pick(( workspaces.map(workspace => ({ label: workspace }))), { placeHolder: ( localize(11139, "Select a workspace to open")) }).then(pick => {
74
+ this.quickInputService.pick(( workspaces.map(workspace => ({ label: workspace }))), { placeHolder: ( localize(11334, "Select a workspace to open")) }).then(pick => {
75
75
  if (pick) {
76
76
  this.hostService.openWindow([{ workspaceUri: joinPath(folder, pick.label) }]);
77
77
  }
@@ -97,7 +97,7 @@ registerAction2(class extends Action2 {
97
97
  constructor() {
98
98
  super({
99
99
  id: 'workbench.action.openWorkspaceFromEditor',
100
- title: ( localize2(11136, "Open Workspace")),
100
+ title: ( localize2(11331, "Open Workspace")),
101
101
  f1: false,
102
102
  menu: {
103
103
  id: MenuId.EditorContent,
@@ -112,7 +112,7 @@ registerAction2(class extends Action2 {
112
112
  if (contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
113
113
  const workspaceConfiguration = contextService.getWorkspace().configuration;
114
114
  if (workspaceConfiguration && isEqual(workspaceConfiguration, uri)) {
115
- notificationService.info(( localize(11140, "This workspace is already open.")));
115
+ notificationService.info(( localize(11335, "This workspace is already open.")));
116
116
  return;
117
117
  }
118
118
  }
@@ -3,8 +3,8 @@ import { Event, Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/comm
3
3
  import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
4
4
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
5
5
  import { ConfigurationModel, ConfigurationParseOptions, UserSettings } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationModels";
6
- import { IConfigurationCache } from "@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration";
7
- import { IStoredWorkspaceFolder } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
6
+ import { IConfigurationCache } from "@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration";
7
+ import { IStoredWorkspaceFolder } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces";
8
8
  import { WorkbenchState, IWorkspaceFolder, IWorkspaceIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
9
9
  import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
10
10
  import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
@@ -6,9 +6,9 @@ import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/co
6
6
  import { FileOperationResult, FileChangeType, FileOperation, whenProviderRegistered } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
7
7
  import { UserSettings, ConfigurationModelParser, ConfigurationModel } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationModels';
8
8
  import { StandaloneConfigurationModelParser, WorkspaceConfigurationModelParser } from '../common/configurationModels.js';
9
- import { APPLY_ALL_PROFILES_SETTING, TASKS_CONFIGURATION_KEY, REMOTE_MACHINE_SCOPES, WORKSPACE_SCOPES, FOLDER_SETTINGS_NAME, FOLDER_SCOPES, LAUNCH_CONFIGURATION_KEY } from '@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration';
9
+ import { APPLICATION_SCOPES, APPLY_ALL_PROFILES_SETTING, TASKS_CONFIGURATION_KEY, REMOTE_MACHINE_SCOPES, WORKSPACE_SCOPES, FOLDER_SETTINGS_NAME, FOLDER_SCOPES, LAUNCH_CONFIGURATION_KEY } from '@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration';
10
10
  import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
11
- import { Extensions, OVERRIDE_PROPERTY_REGEX, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
11
+ import { Extensions, OVERRIDE_PROPERTY_REGEX } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
12
12
  import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
13
13
  import { hash } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
14
14
  import { joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
@@ -94,7 +94,7 @@ class DefaultConfiguration extends DefaultConfiguration$1 {
94
94
  }
95
95
  class ApplicationConfiguration extends UserSettings {
96
96
  constructor(userDataProfilesService, fileService, uriIdentityService, logService) {
97
- super(userDataProfilesService.defaultProfile.settingsResource, { scopes: [ConfigurationScope.APPLICATION], skipUnregistered: true }, uriIdentityService.extUri, fileService, logService);
97
+ super(userDataProfilesService.defaultProfile.settingsResource, { scopes: APPLICATION_SCOPES, skipUnregistered: true }, uriIdentityService.extUri, fileService, logService);
98
98
  this._onDidChangeConfiguration = this._register(( new Emitter()));
99
99
  this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
100
100
  this._register(this.onDidChange(() => this.reloadConfigurationScheduler.schedule()));
@@ -5,9 +5,9 @@ import { Workspace as BaseWorkspace, WorkbenchState, IWorkspaceFolder, IWorkspac
5
5
  import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
6
6
  import { ConfigurationModel } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationModels";
7
7
  import { IConfigurationChangeEvent, ConfigurationTarget, IConfigurationOverrides, IConfigurationData, IConfigurationValue, IConfigurationUpdateOverrides, IConfigurationUpdateOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration";
8
- import { IConfigurationCache, RestrictedSettings } from "@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration";
8
+ import { IConfigurationCache, RestrictedSettings } from "@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration";
9
9
  import { IWorkbenchConfigurationService } from "@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common/vscode/vs/workbench/services/configuration/common/configuration.service";
10
- import { IWorkspaceFolderCreationData } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
10
+ import { IWorkspaceFolderCreationData } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces";
11
11
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
12
12
  import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service";
13
13
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
@@ -14,10 +14,10 @@ import { isConfigurationOverrides, isConfigurationUpdateOverrides, Configuration
14
14
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
15
15
  import { NullPolicyConfiguration, PolicyConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurations';
16
16
  import { Configuration } from '../common/configurationModels.js';
17
- import { LOCAL_MACHINE_SCOPES, LOCAL_MACHINE_PROFILE_SCOPES, PROFILE_SCOPES, APPLY_ALL_PROFILES_SETTING, FOLDER_CONFIG_FOLDER_NAME, defaultSettingsSchemaId, userSettingsSchemaId, profileSettingsSchemaId, machineSettingsSchemaId, workspaceSettingsSchemaId, folderSettingsSchemaId } from '@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration';
17
+ import { LOCAL_MACHINE_SCOPES, LOCAL_MACHINE_PROFILE_SCOPES, PROFILE_SCOPES, APPLICATION_SCOPES, APPLY_ALL_PROFILES_SETTING, FOLDER_CONFIG_FOLDER_NAME, defaultSettingsSchemaId, userSettingsSchemaId, profileSettingsSchemaId, machineSettingsSchemaId, workspaceSettingsSchemaId, folderSettingsSchemaId } from '@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration';
18
18
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
19
- import { Extensions, ConfigurationScope, keyFromOverrideIdentifiers, allSettings, applicationSettings, windowSettings, resourceSettings, machineSettings, machineOverridableSettings, OVERRIDE_PROPERTY_PATTERN, resourceLanguageSettingsSchemaId, configurationDefaultsSchemaId } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
20
- import { isStoredWorkspaceFolder, toWorkspaceFolders, getStoredWorkspaceFolder } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces';
19
+ import { Extensions, keyFromOverrideIdentifiers, ConfigurationScope, allSettings, applicationSettings, windowSettings, resourceSettings, machineSettings, machineOverridableSettings, applicationMachineSettings, OVERRIDE_PROPERTY_PATTERN, resourceLanguageSettingsSchemaId, configurationDefaultsSchemaId } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
20
+ import { isStoredWorkspaceFolder, toWorkspaceFolders, getStoredWorkspaceFolder } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces';
21
21
  import { EditableConfigurationTarget, ConfigurationEditing } from '../common/configurationEditing.js';
22
22
  import { DefaultConfiguration, UserConfiguration, RemoteUserConfiguration, WorkspaceConfiguration, ApplicationConfiguration, FolderConfiguration } from './configuration.js';
23
23
  import { mark } from '@codingame/monaco-vscode-api/vscode/vs/base/common/performance';
@@ -39,9 +39,11 @@ import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
39
39
  import { runWhenWindowIdle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
40
40
 
41
41
  function getLocalUserConfigurationScopes(userDataProfile, hasRemote) {
42
- return (userDataProfile.isDefault || userDataProfile.useDefaultFlags?.settings)
43
- ? hasRemote ? LOCAL_MACHINE_SCOPES : undefined
44
- : hasRemote ? LOCAL_MACHINE_PROFILE_SCOPES : PROFILE_SCOPES;
42
+ const isDefaultProfile = userDataProfile.isDefault || userDataProfile.useDefaultFlags?.settings;
43
+ if (isDefaultProfile) {
44
+ return hasRemote ? LOCAL_MACHINE_SCOPES : undefined;
45
+ }
46
+ return hasRemote ? LOCAL_MACHINE_PROFILE_SCOPES : PROFILE_SCOPES;
45
47
  }
46
48
  class Workspace extends Workspace$1 {
47
49
  constructor() {
@@ -396,7 +398,8 @@ class WorkspaceService extends Disposable {
396
398
  this.instantiationService = instantiationService;
397
399
  }
398
400
  isSettingAppliedForAllProfiles(key) {
399
- if (this.configurationRegistry.getConfigurationProperties()[key]?.scope === ConfigurationScope.APPLICATION) {
401
+ const scope = this.configurationRegistry.getConfigurationProperties()[key]?.scope;
402
+ if (scope && APPLICATION_SCOPES.includes(scope)) {
400
403
  return true;
401
404
  }
402
405
  const allProfilesSettings = this.getValue(APPLY_ALL_PROFILES_SETTING) ?? [];
@@ -676,7 +679,8 @@ class WorkspaceService extends Disposable {
676
679
  const configurationProperties = this.configurationRegistry.getConfigurationProperties();
677
680
  const changedKeys = [];
678
681
  for (const changedKey of change.keys) {
679
- if (configurationProperties[changedKey]?.scope === ConfigurationScope.APPLICATION) {
682
+ const scope = configurationProperties[changedKey]?.scope;
683
+ if (scope && APPLICATION_SCOPES.includes(scope)) {
680
684
  changedKeys.push(changedKey);
681
685
  if (changedKey === APPLY_ALL_PROFILES_SETTING) {
682
686
  for (const previousAllProfileSetting of previousAllProfilesSettings) {
@@ -992,7 +996,7 @@ class WorkspaceService extends Disposable {
992
996
  if (target === ConfigurationTarget.USER) {
993
997
  if (this.remoteUserConfiguration) {
994
998
  const scope = this.configurationRegistry.getConfigurationProperties()[key]?.scope;
995
- if (scope === ConfigurationScope.MACHINE || scope === ConfigurationScope.MACHINE_OVERRIDABLE) {
999
+ if (scope === ConfigurationScope.MACHINE || scope === ConfigurationScope.MACHINE_OVERRIDABLE || scope === ConfigurationScope.APPLICATION_MACHINE) {
996
1000
  return EditableConfigurationTarget.USER_REMOTE;
997
1001
  }
998
1002
  if (this.inspect(key).userRemoteValue !== undefined) {
@@ -1054,7 +1058,7 @@ let RegisterConfigurationSchemasContribution = class RegisterConfigurationSchema
1054
1058
  allowComments: true
1055
1059
  };
1056
1060
  const machineSettingsSchema = {
1057
- properties: Object.assign({}, machineSettings.properties, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
1061
+ properties: Object.assign({}, applicationMachineSettings.properties, machineSettings.properties, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
1058
1062
  patternProperties: allSettings.patternProperties,
1059
1063
  additionalProperties: true,
1060
1064
  allowTrailingCommas: true,
@@ -1090,7 +1094,7 @@ let RegisterConfigurationSchemasContribution = class RegisterConfigurationSchema
1090
1094
  } : workspaceSettingsSchema;
1091
1095
  const configDefaultsSchema = {
1092
1096
  type: 'object',
1093
- description: ( localize(11280, 'Contribute defaults for configurations')),
1097
+ description: ( localize(11476, 'Contribute defaults for configurations')),
1094
1098
  properties: Object.assign({}, this.filterDefaultOverridableProperties(machineOverridableSettings.properties), this.filterDefaultOverridableProperties(windowSettings.properties), this.filterDefaultOverridableProperties(resourceSettings.properties)),
1095
1099
  patternProperties: {
1096
1100
  [OVERRIDE_PROPERTY_PATTERN]: {
@@ -1211,7 +1215,7 @@ configurationRegistry.registerConfiguration({
1211
1215
  properties: {
1212
1216
  [APPLY_ALL_PROFILES_SETTING]: {
1213
1217
  'type': 'array',
1214
- description: ( localize(11281, "Configure settings to be applied for all profiles.")),
1218
+ description: ( localize(11477, "Configure settings to be applied for all profiles.")),
1215
1219
  'default': [],
1216
1220
  'scope': ConfigurationScope.APPLICATION,
1217
1221
  additionalProperties: true,
@@ -1,4 +1,4 @@
1
- import { IConfigurationCache, ConfigurationKey } from "@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration";
1
+ import { IConfigurationCache, ConfigurationKey } from "@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration";
2
2
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
3
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
4
4
  import { IEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service";
@@ -2,13 +2,13 @@
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
4
4
  import { parse } from '@codingame/monaco-vscode-api/vscode/vs/base/common/json';
5
- import { setProperty } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/base/common/jsonEdit';
5
+ import { setProperty } from '@codingame/monaco-vscode-407531d3-fdae-5387-8c41-49ba0e9574b5-common/vscode/vs/base/common/jsonEdit';
6
6
  import { Queue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
7
7
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
8
8
  import { WorkbenchState } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace';
9
9
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
10
10
  import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
11
- import { TASKS_CONFIGURATION_KEY, LAUNCH_CONFIGURATION_KEY, TASKS_DEFAULT, FOLDER_SCOPES, USER_STANDALONE_CONFIGURATIONS, WORKSPACE_STANDALONE_CONFIGURATIONS, FOLDER_SETTINGS_PATH } from '@codingame/monaco-vscode-37e80bf5-92f5-5e4c-8b6d-98e0bb89dbef-common/vscode/vs/workbench/services/configuration/common/configuration';
11
+ import { TASKS_CONFIGURATION_KEY, LAUNCH_CONFIGURATION_KEY, TASKS_DEFAULT, APPLICATION_SCOPES, FOLDER_SCOPES, USER_STANDALONE_CONFIGURATIONS, WORKSPACE_STANDALONE_CONFIGURATIONS, FOLDER_SETTINGS_PATH } from '@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration';
12
12
  import { IWorkbenchConfigurationService } from '@codingame/monaco-vscode-422642f2-7e3a-5c1c-9e1e-1d3ef1817346-common/vscode/vs/workbench/services/configuration/common/configuration.service';
13
13
  import { FileOperationResult } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
14
14
  import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
@@ -127,7 +127,7 @@ let ConfigurationEditing = class ConfigurationEditing {
127
127
  throw this.toConfigurationEditingError(ConfigurationEditingErrorCode.ERROR_CONFIGURATION_FILE_MODIFIED_SINCE, operation.target, operation);
128
128
  }
129
129
  throw ( new ConfigurationEditingError(( localize(
130
- 11282,
130
+ 11478,
131
131
  "Error while writing to {0}. {1}",
132
132
  this.stringifyTarget(operation.target),
133
133
  error.message
@@ -187,8 +187,8 @@ let ConfigurationEditing = class ConfigurationEditing {
187
187
  }
188
188
  }
189
189
  onInvalidConfigurationError(error, operation) {
190
- const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(11283, "Open Tasks Configuration"))
191
- : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(11284, "Open Launch Configuration"))
190
+ const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(11479, "Open Tasks Configuration"))
191
+ : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(11480, "Open Launch Configuration"))
192
192
  : null;
193
193
  if (openStandAloneConfigurationActionLabel) {
194
194
  this.notificationService.prompt(Severity.Error, error.message, [{
@@ -198,18 +198,18 @@ let ConfigurationEditing = class ConfigurationEditing {
198
198
  }
199
199
  else {
200
200
  this.notificationService.prompt(Severity.Error, error.message, [{
201
- label: ( localize(11285, "Open Settings")),
201
+ label: ( localize(11481, "Open Settings")),
202
202
  run: () => this.openSettings(operation)
203
203
  }]);
204
204
  }
205
205
  }
206
206
  onConfigurationFileDirtyError(error, operation, scopes) {
207
- const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(11283, "Open Tasks Configuration"))
208
- : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(11284, "Open Launch Configuration"))
207
+ const openStandAloneConfigurationActionLabel = operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY ? ( localize(11479, "Open Tasks Configuration"))
208
+ : operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY ? ( localize(11480, "Open Launch Configuration"))
209
209
  : null;
210
210
  if (openStandAloneConfigurationActionLabel) {
211
211
  this.notificationService.prompt(Severity.Error, error.message, [{
212
- label: ( localize(11286, "Save and Retry")),
212
+ label: ( localize(11482, "Save and Retry")),
213
213
  run: () => {
214
214
  const key = operation.key ? `${operation.workspaceStandAloneConfigurationKey}.${operation.key}` : operation.workspaceStandAloneConfigurationKey;
215
215
  this.writeConfiguration(operation.target, { key, value: operation.value }, { handleDirtyFile: 'save', scopes });
@@ -222,11 +222,11 @@ let ConfigurationEditing = class ConfigurationEditing {
222
222
  }
223
223
  else {
224
224
  this.notificationService.prompt(Severity.Error, error.message, [{
225
- label: ( localize(11286, "Save and Retry")),
225
+ label: ( localize(11482, "Save and Retry")),
226
226
  run: () => this.writeConfiguration(operation.target, { key: operation.key, value: operation.value }, { handleDirtyFile: 'save', scopes })
227
227
  },
228
228
  {
229
- label: ( localize(11285, "Open Settings")),
229
+ label: ( localize(11481, "Open Settings")),
230
230
  run: () => this.openSettings(operation)
231
231
  }]);
232
232
  }
@@ -263,82 +263,82 @@ let ConfigurationEditing = class ConfigurationEditing {
263
263
  toErrorMessage(error, target, operation) {
264
264
  switch (error) {
265
265
  case ConfigurationEditingErrorCode.ERROR_POLICY_CONFIGURATION: return localize(
266
- 11287,
266
+ 11483,
267
267
  "Unable to write {0} because it is configured in system policy.",
268
268
  operation.key
269
269
  );
270
270
  case ConfigurationEditingErrorCode.ERROR_UNKNOWN_KEY: return localize(
271
- 11288,
271
+ 11484,
272
272
  "Unable to write to {0} because {1} is not a registered configuration.",
273
273
  this.stringifyTarget(target),
274
274
  operation.key
275
275
  );
276
276
  case ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_CONFIGURATION_APPLICATION: return localize(
277
- 11289,
277
+ 11485,
278
278
  "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.",
279
279
  operation.key
280
280
  );
281
281
  case ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_CONFIGURATION_MACHINE: return localize(
282
- 11290,
282
+ 11486,
283
283
  "Unable to write {0} to Workspace Settings. This setting can be written only into User settings.",
284
284
  operation.key
285
285
  );
286
286
  case ConfigurationEditingErrorCode.ERROR_INVALID_FOLDER_CONFIGURATION: return localize(
287
- 11291,
287
+ 11487,
288
288
  "Unable to write to Folder Settings because {0} does not support the folder resource scope.",
289
289
  operation.key
290
290
  );
291
291
  case ConfigurationEditingErrorCode.ERROR_INVALID_USER_TARGET: return localize(
292
- 11292,
292
+ 11488,
293
293
  "Unable to write to User Settings because {0} does not support for global scope.",
294
294
  operation.key
295
295
  );
296
296
  case ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_TARGET: return localize(
297
- 11293,
297
+ 11489,
298
298
  "Unable to write to Workspace Settings because {0} does not support for workspace scope in a multi folder workspace.",
299
299
  operation.key
300
300
  );
301
301
  case ConfigurationEditingErrorCode.ERROR_INVALID_FOLDER_TARGET: return localize(
302
- 11294,
302
+ 11490,
303
303
  "Unable to write to Folder Settings because no resource is provided."
304
304
  );
305
305
  case ConfigurationEditingErrorCode.ERROR_INVALID_RESOURCE_LANGUAGE_CONFIGURATION: return localize(
306
- 11295,
306
+ 11491,
307
307
  "Unable to write to Language Settings because {0} is not a resource language setting.",
308
308
  operation.key
309
309
  );
310
310
  case ConfigurationEditingErrorCode.ERROR_NO_WORKSPACE_OPENED: return localize(
311
- 11296,
311
+ 11492,
312
312
  "Unable to write to {0} because no workspace is opened. Please open a workspace first and try again.",
313
313
  this.stringifyTarget(target)
314
314
  );
315
315
  case ConfigurationEditingErrorCode.ERROR_INVALID_CONFIGURATION: {
316
316
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
317
317
  return localize(
318
- 11297,
318
+ 11493,
319
319
  "Unable to write into the tasks configuration file. Please open it to correct errors/warnings in it and try again."
320
320
  );
321
321
  }
322
322
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
323
323
  return localize(
324
- 11298,
324
+ 11494,
325
325
  "Unable to write into the launch configuration file. Please open it to correct errors/warnings in it and try again."
326
326
  );
327
327
  }
328
328
  switch (target) {
329
329
  case EditableConfigurationTarget.USER_LOCAL:
330
330
  return localize(
331
- 11299,
331
+ 11495,
332
332
  "Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again."
333
333
  );
334
334
  case EditableConfigurationTarget.USER_REMOTE:
335
335
  return localize(
336
- 11300,
336
+ 11496,
337
337
  "Unable to write into remote user settings. Please open the remote user settings to correct errors/warnings in it and try again."
338
338
  );
339
339
  case EditableConfigurationTarget.WORKSPACE:
340
340
  return localize(
341
- 11301,
341
+ 11497,
342
342
  "Unable to write into workspace settings. Please open the workspace settings to correct errors/warnings in the file and try again."
343
343
  );
344
344
  case EditableConfigurationTarget.WORKSPACE_FOLDER: {
@@ -350,7 +350,7 @@ let ConfigurationEditing = class ConfigurationEditing {
350
350
  }
351
351
  }
352
352
  return localize(
353
- 11302,
353
+ 11498,
354
354
  "Unable to write into folder settings. Please open the '{0}' folder settings to correct errors/warnings in it and try again.",
355
355
  workspaceFolderName
356
356
  );
@@ -362,30 +362,30 @@ let ConfigurationEditing = class ConfigurationEditing {
362
362
  case ConfigurationEditingErrorCode.ERROR_CONFIGURATION_FILE_DIRTY: {
363
363
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
364
364
  return localize(
365
- 11303,
365
+ 11499,
366
366
  "Unable to write into tasks configuration file because the file has unsaved changes. Please save it first and then try again."
367
367
  );
368
368
  }
369
369
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
370
370
  return localize(
371
- 11304,
371
+ 11500,
372
372
  "Unable to write into launch configuration file because the file has unsaved changes. Please save it first and then try again."
373
373
  );
374
374
  }
375
375
  switch (target) {
376
376
  case EditableConfigurationTarget.USER_LOCAL:
377
377
  return localize(
378
- 11305,
378
+ 11501,
379
379
  "Unable to write into user settings because the file has unsaved changes. Please save the user settings file first and then try again."
380
380
  );
381
381
  case EditableConfigurationTarget.USER_REMOTE:
382
382
  return localize(
383
- 11306,
383
+ 11502,
384
384
  "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."
385
385
  );
386
386
  case EditableConfigurationTarget.WORKSPACE:
387
387
  return localize(
388
- 11307,
388
+ 11503,
389
389
  "Unable to write into workspace settings because the file has unsaved changes. Please save the workspace settings file first and then try again."
390
390
  );
391
391
  case EditableConfigurationTarget.WORKSPACE_FOLDER: {
@@ -397,7 +397,7 @@ let ConfigurationEditing = class ConfigurationEditing {
397
397
  }
398
398
  }
399
399
  return localize(
400
- 11308,
400
+ 11504,
401
401
  "Unable to write into folder settings because the file has unsaved changes. Please save the '{0}' folder settings file first and then try again.",
402
402
  workspaceFolderName
403
403
  );
@@ -409,40 +409,40 @@ let ConfigurationEditing = class ConfigurationEditing {
409
409
  case ConfigurationEditingErrorCode.ERROR_CONFIGURATION_FILE_MODIFIED_SINCE:
410
410
  if (operation.workspaceStandAloneConfigurationKey === TASKS_CONFIGURATION_KEY) {
411
411
  return localize(
412
- 11309,
412
+ 11505,
413
413
  "Unable to write into tasks configuration file because the content of the file is newer."
414
414
  );
415
415
  }
416
416
  if (operation.workspaceStandAloneConfigurationKey === LAUNCH_CONFIGURATION_KEY) {
417
417
  return localize(
418
- 11310,
418
+ 11506,
419
419
  "Unable to write into launch configuration file because the content of the file is newer."
420
420
  );
421
421
  }
422
422
  switch (target) {
423
423
  case EditableConfigurationTarget.USER_LOCAL:
424
424
  return localize(
425
- 11311,
425
+ 11507,
426
426
  "Unable to write into user settings because the content of the file is newer."
427
427
  );
428
428
  case EditableConfigurationTarget.USER_REMOTE:
429
429
  return localize(
430
- 11312,
430
+ 11508,
431
431
  "Unable to write into remote user settings because the content of the file is newer."
432
432
  );
433
433
  case EditableConfigurationTarget.WORKSPACE:
434
434
  return localize(
435
- 11313,
435
+ 11509,
436
436
  "Unable to write into workspace settings because the content of the file is newer."
437
437
  );
438
438
  case EditableConfigurationTarget.WORKSPACE_FOLDER:
439
439
  return localize(
440
- 11314,
440
+ 11510,
441
441
  "Unable to write into folder settings because the content of the file is newer."
442
442
  );
443
443
  }
444
444
  case ConfigurationEditingErrorCode.ERROR_INTERNAL: return localize(
445
- 11315,
445
+ 11511,
446
446
  "Unable to write to {0} because of an internal error.",
447
447
  this.stringifyTarget(target)
448
448
  );
@@ -451,13 +451,13 @@ let ConfigurationEditing = class ConfigurationEditing {
451
451
  stringifyTarget(target) {
452
452
  switch (target) {
453
453
  case EditableConfigurationTarget.USER_LOCAL:
454
- return localize(11316, "User Settings");
454
+ return localize(11512, "User Settings");
455
455
  case EditableConfigurationTarget.USER_REMOTE:
456
- return localize(11317, "Remote User Settings");
456
+ return localize(11513, "Remote User Settings");
457
457
  case EditableConfigurationTarget.WORKSPACE:
458
- return localize(11318, "Workspace Settings");
458
+ return localize(11514, "Workspace Settings");
459
459
  case EditableConfigurationTarget.WORKSPACE_FOLDER:
460
- return localize(11319, "Folder Settings");
460
+ return localize(11515, "Folder Settings");
461
461
  default:
462
462
  return '';
463
463
  }
@@ -507,7 +507,7 @@ let ConfigurationEditing = class ConfigurationEditing {
507
507
  }
508
508
  if (target === EditableConfigurationTarget.WORKSPACE) {
509
509
  if (!operation.workspaceStandAloneConfigurationKey && !OVERRIDE_PROPERTY_REGEX.test(operation.key)) {
510
- if (configurationScope === ConfigurationScope.APPLICATION) {
510
+ if (configurationScope && APPLICATION_SCOPES.includes(configurationScope)) {
511
511
  throw this.toConfigurationEditingError(ConfigurationEditingErrorCode.ERROR_INVALID_WORKSPACE_CONFIGURATION_APPLICATION, target, operation);
512
512
  }
513
513
  if (configurationScope === ConfigurationScope.MACHINE) {
@@ -1,6 +1,6 @@
1
1
  import { IConfigurationModel, IConfigurationOverrides, IConfigurationValue, IConfigurationChange } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration";
2
2
  import { Configuration as BaseConfiguration, ConfigurationModelParser, ConfigurationModel, ConfigurationParseOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationModels";
3
- import { IStoredWorkspaceFolder } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
3
+ import { IStoredWorkspaceFolder } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces";
4
4
  import { Workspace } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
5
5
  import { ResourceMap } from "@codingame/monaco-vscode-api/vscode/vs/base/common/map";
6
6
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
@@ -86,6 +86,17 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
86
86
  }
87
87
  return undefined;
88
88
  },
89
+ getColumnNumber: () => {
90
+ const activeTextEditorControl = editorService.activeTextEditorControl;
91
+ if (isCodeEditor(activeTextEditorControl)) {
92
+ const selection = activeTextEditorControl.getSelection();
93
+ if (selection) {
94
+ const columnNumber = selection.positionColumn;
95
+ return String(columnNumber);
96
+ }
97
+ }
98
+ return undefined;
99
+ },
89
100
  getExtension: id => {
90
101
  return extensionService.getExtension(id);
91
102
  },
@@ -174,7 +185,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
174
185
  result = await this.commandService.executeCommand(commandId, configuration);
175
186
  if (typeof result !== 'string' && !isUndefinedOrNull(result)) {
176
187
  throw ( new Error(( localize(
177
- 11321,
188
+ 11517,
178
189
  "Cannot substitute command variable '{0}' because command did not return a result of type string.",
179
190
  commandId
180
191
  ))));
@@ -226,7 +237,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
226
237
  showUserInput(section, variable, inputInfos) {
227
238
  if (!inputInfos) {
228
239
  return Promise.reject(( new Error(( localize(
229
- 11322,
240
+ 11518,
230
241
  "Variable '{0}' must be defined in an '{1}' section of the debug or task configuration.",
231
242
  variable,
232
243
  'inputs'
@@ -236,7 +247,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
236
247
  if (info) {
237
248
  const missingAttribute = (attrName) => {
238
249
  throw ( new Error(( localize(
239
- 11323,
250
+ 11519,
240
251
  "Input variable '{0}' is of type '{1}' and must include '{2}'.",
241
252
  variable,
242
253
  info.type,
@@ -288,7 +299,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
288
299
  value: value
289
300
  };
290
301
  if (value === info.default) {
291
- item.description = ( localize(11324, "(Default)"));
302
+ item.description = ( localize(11520, "(Default)"));
292
303
  picks.unshift(item);
293
304
  }
294
305
  else if (!info.default && value === previousPickedValue) {
@@ -317,7 +328,7 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
317
328
  return result;
318
329
  }
319
330
  throw ( new Error(( localize(
320
- 11325,
331
+ 11521,
321
332
  "Cannot substitute input variable '{0}' because command '{1}' did not return a result of type string.",
322
333
  variable,
323
334
  info.command
@@ -326,14 +337,14 @@ class BaseConfigurationResolverService extends AbstractVariableResolverService {
326
337
  }
327
338
  default:
328
339
  throw ( new Error(( localize(
329
- 11326,
340
+ 11522,
330
341
  "Input variable '{0}' can only be of type 'promptString', 'pickString', or 'command'.",
331
342
  variable
332
343
  ))));
333
344
  }
334
345
  }
335
346
  return Promise.reject(( new Error(( localize(
336
- 11327,
347
+ 11523,
337
348
  "Undefined input variable '{0}' encountered. Remove or define '{0}' to continue.",
338
349
  variable
339
350
  )))));
@@ -2,7 +2,7 @@ import { IWorkspaceEditingService } from "@codingame/monaco-vscode-api/vscode/vs
2
2
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
3
3
  import { IWorkspaceIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace";
4
4
  import { IJSONEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing.service";
5
- import { IWorkspaceFolderCreationData, IEnterWorkspaceResult } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
5
+ import { IWorkspaceFolderCreationData, IEnterWorkspaceResult } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces";
6
6
  import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
7
7
  import { WorkspaceService } from "../../configuration/browser/configurationService.js";
8
8
  import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
@@ -5,7 +5,7 @@ import { WORKSPACE_FILTER, hasWorkspaceFileExtension, WORKSPACE_EXTENSION, isSav
5
5
  import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
6
6
  import { JSONEditingErrorCode } from '@codingame/monaco-vscode-d987325e-3e05-53aa-b9ff-6f97476f64db-common/vscode/vs/workbench/services/configuration/common/jsonEditing';
7
7
  import { IJSONEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing.service';
8
- import { rewriteWorkspaceFileForNewLocation } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces';
8
+ import { rewriteWorkspaceFileForNewLocation } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces';
9
9
  import { IWorkspacesService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service';
10
10
  import { ConfigurationScope, Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
11
11
  import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
@@ -56,8 +56,8 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService exte
56
56
  availableFileSystems.unshift(Schemas.vscodeRemote);
57
57
  }
58
58
  let workspacePath = await this.fileDialogService.showSaveDialog({
59
- saveLabel: mnemonicButtonLabel(( localize(12131, "Save"))),
60
- title: ( localize(12132, "Save Workspace")),
59
+ saveLabel: mnemonicButtonLabel(( localize(12353, "Save"))),
60
+ title: ( localize(12354, "Save Workspace")),
61
61
  filters: WORKSPACE_FILTER,
62
62
  defaultUri: joinPath(await this.fileDialogService.defaultWorkspacePath(), this.getNewWorkspaceName()),
63
63
  availableFileSystems
@@ -256,14 +256,14 @@ let AbstractWorkspaceEditingService = class AbstractWorkspaceEditingService exte
256
256
  }
257
257
  onInvalidWorkspaceConfigurationFileError() {
258
258
  const message = ( localize(
259
- 12133,
259
+ 12355,
260
260
  "Unable to write into workspace configuration file. Please open the file to correct errors/warnings in it and try again."
261
261
  ));
262
262
  this.askToOpenWorkspaceConfigurationFile(message);
263
263
  }
264
264
  askToOpenWorkspaceConfigurationFile(message) {
265
265
  this.notificationService.prompt(Severity.Error, message, [{
266
- label: ( localize(12134, "Open Workspace Configuration")),
266
+ label: ( localize(12356, "Open Workspace Configuration")),
267
267
  run: () => this.commandService.executeCommand('workbench.action.openWorkspaceConfigFile')
268
268
  }]);
269
269
  }
@@ -1,4 +1,4 @@
1
- import { IWorkspaceFolderCreationData, IEnterWorkspaceResult, IRecentlyOpened, IRecent } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces";
1
+ import { IWorkspaceFolderCreationData, IEnterWorkspaceResult, IRecentlyOpened, IRecent } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces";
2
2
  import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service";
3
3
  import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
4
4
  import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
@@ -9,7 +9,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
9
9
  import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
10
10
  import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
11
11
  import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
12
- import { IWorkspaceBackupInfo, IFolderBackupInfo } from "@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/backup/common/backup";
12
+ import { IWorkspaceBackupInfo, IFolderBackupInfo } from "@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/backup/common/backup";
13
13
  export declare class BrowserWorkspacesService extends Disposable implements IWorkspacesService {
14
14
  private readonly storageService;
15
15
  private readonly contextService;
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
4
- import { restoreRecentlyOpened, isRecentFolder, isRecentWorkspace, isRecentFile, toStoreData, getStoredWorkspaceFolder } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/platform/workspaces/common/workspaces';
4
+ import { restoreRecentlyOpened, isRecentFolder, isRecentWorkspace, isRecentFile, toStoreData, getStoredWorkspaceFolder } from '@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common/vscode/vs/platform/workspaces/common/workspaces';
5
5
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
6
6
  import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
7
7
  import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';