mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
- add tests
- fix scenarios causing tests failures - check for duplicate policy names
This commit is contained in:
@@ -204,7 +204,8 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
||||
configuration.properties = {};
|
||||
}
|
||||
for (let key in properties) {
|
||||
const message = validateProperty(key);
|
||||
const propertyConfiguration = properties[key];
|
||||
const message = validateProperty(key, propertyConfiguration);
|
||||
if (message) {
|
||||
delete properties[key];
|
||||
extension.collector.warn(message);
|
||||
@@ -215,7 +216,6 @@ configurationExtPoint.setHandler((extensions, { added, removed }) => {
|
||||
extension.collector.warn(nls.localize('config.property.duplicate', "Cannot register '{0}'. This property is already registered.", key));
|
||||
continue;
|
||||
}
|
||||
const propertyConfiguration = properties[key];
|
||||
if (!isObject(propertyConfiguration)) {
|
||||
delete properties[key];
|
||||
extension.collector.error(nls.localize('invalid.property', "configuration.properties property '{0}' must be an object", key));
|
||||
|
||||
Reference in New Issue
Block a user