@codingame/monaco-vscode-api 37.3.7 → 37.3.9
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 +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +33 -4
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "37.3.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "37.3.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "37.3.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "37.3.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "37.3.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "37.3.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "37.3.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "37.3.9",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "37.3.9",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "37.3.9",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "37.3.9",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "37.3.9",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "37.3.9",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "37.3.9",
|
|
25
25
|
"@vscode/diff": "0.0.2-7",
|
|
26
26
|
"@vscode/iconv-lite-umd": "0.7.1",
|
|
27
27
|
"dompurify": "3.4.15",
|
package/services.js
CHANGED
|
@@ -540,10 +540,10 @@ export { IAutomationService } from './vscode/src/vs/workbench/contrib/chat/commo
|
|
|
540
540
|
export { IAgentWorkbenchLayoutService } from './vscode/src/vs/sessions/browser/workbench.service.js';
|
|
541
541
|
export { IAICustomizationItemsModel } from './vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationItemsModel.service.js';
|
|
542
542
|
|
|
543
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.138.0-
|
|
544
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.138.0-
|
|
543
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.138.0-03c4d459-f2d8-4c05-a629-a4e0272acf47") {
|
|
544
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.138.0-03c4d459-f2d8-4c05-a629-a4e0272acf47"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
545
545
|
}
|
|
546
|
-
window.monacoVscodeApiBuildId = "1.138.0-
|
|
546
|
+
window.monacoVscodeApiBuildId = "1.138.0-03c4d459-f2d8-4c05-a629-a4e0272acf47";
|
|
547
547
|
function registerCommands(options) {
|
|
548
548
|
function asMenuId(menu) {
|
|
549
549
|
switch (menu) {
|
|
@@ -303,6 +303,7 @@ export type IRegisteredConfigurationPropertySchema = IConfigurationPropertySchem
|
|
|
303
303
|
extensionInfo?: IExtensionInfo;
|
|
304
304
|
};
|
|
305
305
|
defaultDefaultValue?: unknown;
|
|
306
|
+
agentsWindowDefaultDefaultValue?: unknown;
|
|
306
307
|
source?: ConfigurationDefaultSource;
|
|
307
308
|
defaultValueSource?: ConfigurationDefaultValueSource;
|
|
308
309
|
};
|
|
@@ -196,6 +196,13 @@ class ConfigurationRegistry extends Disposable {
|
|
|
196
196
|
continue;
|
|
197
197
|
}
|
|
198
198
|
configurationDefaultOverridesForKey.configurationDefaultOverrideValue = newDefaultOverride;
|
|
199
|
+
configurationDefaultOverridesForKey.agentsWindowDefaultOverrideValue = this.mergeDefaultConfigurationsForConfigurationProperty(
|
|
200
|
+
key,
|
|
201
|
+
value,
|
|
202
|
+
source,
|
|
203
|
+
configurationDefaultOverridesForKey.agentsWindowDefaultOverrideValue,
|
|
204
|
+
true
|
|
205
|
+
);
|
|
199
206
|
const property = this.configurationProperties[key];
|
|
200
207
|
if (property) {
|
|
201
208
|
this.updatePropertyDefaultValue(key, property);
|
|
@@ -261,6 +268,7 @@ class ConfigurationRegistry extends Disposable {
|
|
|
261
268
|
}
|
|
262
269
|
} else {
|
|
263
270
|
let configurationDefaultOverrideValue;
|
|
271
|
+
let agentsWindowDefaultOverrideValue;
|
|
264
272
|
for (const configurationDefaultOverride of configurationDefaultOverridesForKey.configurationDefaultOverrides) {
|
|
265
273
|
configurationDefaultOverrideValue = this.mergeDefaultConfigurationsForConfigurationProperty(
|
|
266
274
|
key,
|
|
@@ -268,8 +276,16 @@ class ConfigurationRegistry extends Disposable {
|
|
|
268
276
|
configurationDefaultOverride.source,
|
|
269
277
|
configurationDefaultOverrideValue
|
|
270
278
|
);
|
|
279
|
+
agentsWindowDefaultOverrideValue = this.mergeDefaultConfigurationsForConfigurationProperty(
|
|
280
|
+
key,
|
|
281
|
+
configurationDefaultOverride.value,
|
|
282
|
+
configurationDefaultOverride.source,
|
|
283
|
+
agentsWindowDefaultOverrideValue,
|
|
284
|
+
true
|
|
285
|
+
);
|
|
271
286
|
}
|
|
272
287
|
configurationDefaultOverridesForKey.configurationDefaultOverrideValue = configurationDefaultOverrideValue;
|
|
288
|
+
configurationDefaultOverridesForKey.agentsWindowDefaultOverrideValue = agentsWindowDefaultOverrideValue;
|
|
273
289
|
const property = this.configurationProperties[key];
|
|
274
290
|
if (property) {
|
|
275
291
|
this.updatePropertyDefaultValue(key, property);
|
|
@@ -344,9 +360,16 @@ class ConfigurationRegistry extends Disposable {
|
|
|
344
360
|
source
|
|
345
361
|
};
|
|
346
362
|
}
|
|
347
|
-
mergeDefaultConfigurationsForConfigurationProperty(
|
|
363
|
+
mergeDefaultConfigurationsForConfigurationProperty(
|
|
364
|
+
propertyKey,
|
|
365
|
+
value,
|
|
366
|
+
valuesSource,
|
|
367
|
+
existingDefaultOverride,
|
|
368
|
+
agentsWindow = false
|
|
369
|
+
) {
|
|
348
370
|
const property = this.configurationProperties[propertyKey];
|
|
349
|
-
const
|
|
371
|
+
const originalDefaultValue = agentsWindow ? property?.agentsWindowDefaultDefaultValue : property?.defaultDefaultValue;
|
|
372
|
+
const existingDefaultValue = existingDefaultOverride?.value ?? originalDefaultValue;
|
|
350
373
|
let source = valuesSource;
|
|
351
374
|
const isObjectSetting = isObject(value) && (property !== undefined && property.type === "object" || property === undefined && (isUndefined(existingDefaultValue) || isObject(existingDefaultValue)));
|
|
352
375
|
if (isObjectSetting) {
|
|
@@ -485,7 +508,8 @@ class ConfigurationRegistry extends Disposable {
|
|
|
485
508
|
continue;
|
|
486
509
|
}
|
|
487
510
|
property.source = extensionInfo;
|
|
488
|
-
property.defaultDefaultValue =
|
|
511
|
+
property.defaultDefaultValue = property.default;
|
|
512
|
+
property.agentsWindowDefaultDefaultValue = property.agentsWindow?.default;
|
|
489
513
|
this.updatePropertyDefaultValue(key, property);
|
|
490
514
|
if (OVERRIDE_PROPERTY_REGEX.test(key)) {
|
|
491
515
|
property.scope = undefined;
|
|
@@ -694,7 +718,8 @@ class ConfigurationRegistry extends Disposable {
|
|
|
694
718
|
this._onDidSchemaChange.fire();
|
|
695
719
|
}
|
|
696
720
|
updatePropertyDefaultValue(key, property) {
|
|
697
|
-
const
|
|
721
|
+
const overrides = this.configurationDefaultsOverrides.get(key);
|
|
722
|
+
const configurationdefaultOverride = overrides?.configurationDefaultOverrideValue;
|
|
698
723
|
let defaultValue = undefined;
|
|
699
724
|
let defaultSource = undefined;
|
|
700
725
|
if (
|
|
@@ -711,6 +736,10 @@ class ConfigurationRegistry extends Disposable {
|
|
|
711
736
|
}
|
|
712
737
|
property.default = defaultValue;
|
|
713
738
|
property.defaultValueSource = defaultSource;
|
|
739
|
+
if (property.agentsWindow) {
|
|
740
|
+
const agentsWindowOverride = overrides?.agentsWindowDefaultOverrideValue;
|
|
741
|
+
property.agentsWindow.default = agentsWindowOverride && (!property.disallowConfigurationDefault || !agentsWindowOverride.source) && !isUndefined(agentsWindowOverride.value) ? agentsWindowOverride.value : property.agentsWindowDefaultDefaultValue;
|
|
742
|
+
}
|
|
714
743
|
}
|
|
715
744
|
}
|
|
716
745
|
const OVERRIDE_IDENTIFIER_PATTERN = `\\[([^\\]]+)\\]`;
|