@codingame/monaco-vscode-configuration-service-override 1.85.0 → 1.85.2
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": "1.85.
|
|
3
|
+
"version": "1.85.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,12 +18,14 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.85.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.85.2",
|
|
22
22
|
"monaco-editor": "0.45.0",
|
|
23
|
-
"@codingame/monaco-vscode-files-service-override": "1.85.
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
23
|
+
"@codingame/monaco-vscode-files-service-override": "1.85.2",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "1.85.2",
|
|
25
|
+
"@codingame/monaco-vscode-extensions-service-override": "1.85.2",
|
|
26
|
+
"@codingame/monaco-vscode-environment-service-override": "1.85.2",
|
|
27
|
+
"@codingame/monaco-vscode-layout-service-override": "1.85.2",
|
|
28
|
+
"@codingame/monaco-vscode-host-service-override": "1.85.2",
|
|
29
|
+
"@codingame/monaco-vscode-base-service-override": "1.85.2"
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
import * as
|
|
2
|
+
import * as Objects from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
3
3
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
4
4
|
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
5
5
|
import { Extensions as Extensions$1, configurationDefaultsSchemaId, OVERRIDE_PROPERTY_REGEX, validateProperty } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
@@ -223,7 +223,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
223
223
|
});
|
|
224
224
|
if (removed.length) {
|
|
225
225
|
const removedDefaultConfigurations = ( removed.map(
|
|
226
|
-
extension => ({ overrides:
|
|
226
|
+
extension => ({ overrides: Objects.deepClone(extension.value), source: { id: extension.description.identifier.value, displayName: extension.description.displayName } })
|
|
227
227
|
));
|
|
228
228
|
_configDelta.removedDefaults = removedDefaultConfigurations;
|
|
229
229
|
}
|
|
@@ -231,7 +231,7 @@ defaultConfigurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
231
231
|
const registeredProperties = configurationRegistry.getConfigurationProperties();
|
|
232
232
|
const allowedScopes = [6 , 3 , 4 , 5 ];
|
|
233
233
|
const addedDefaultConfigurations = ( added.map(extension => {
|
|
234
|
-
const overrides =
|
|
234
|
+
const overrides = Objects.deepClone(extension.value);
|
|
235
235
|
for (const key of ( Object.keys(overrides))) {
|
|
236
236
|
if (!OVERRIDE_PROPERTY_REGEX.test(key)) {
|
|
237
237
|
const registeredPropertyScheme = registeredProperties[key];
|
|
@@ -283,7 +283,7 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
|
|
283
283
|
const seenProperties = ( new Set());
|
|
284
284
|
function handleConfiguration(node, extension) {
|
|
285
285
|
const configurations = [];
|
|
286
|
-
const configuration =
|
|
286
|
+
const configuration = Objects.deepClone(node);
|
|
287
287
|
if (configuration.title && (typeof configuration.title !== 'string')) {
|
|
288
288
|
extension.collector.error(( nls.localizeWithPath(
|
|
289
289
|
'vs/workbench/api/common/configurationExtensionPoint',
|