提交 4bf94c8e 编写于 作者: S Sandeep Somavarapu

#19733 Validate default settings to be overridden for a language

上级 9328bd62
......@@ -127,13 +127,14 @@ class ConfigurationRegistry implements IConfigurationRegistry {
}
for (const key in configurationNode.defaults) {
if (OVERRIDE_PROPERTY_PATTERN.test(key)) {
const defaultValue = configurationNode.defaults[key];
if (OVERRIDE_PROPERTY_PATTERN.test(key) && typeof defaultValue === 'object') {
if (!configurationNode.properties) {
configurationNode.properties = {};
}
configurationNode.properties[key] = {
type: 'object',
default: configurationNode.defaults[key],
default: defaultValue,
description: nls.localize('overrideSettings.description', "Configure editor settings to be overridden for {0} language.", key),
$ref: editorConfigurationSchemaId
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册