Skip to content

Commit 656920b

Browse files
committed
microsoft#96898 load unknown configurations always
1 parent 24fb571 commit 656920b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/vs/platform/configuration/common/configurationModels.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,18 @@ export class ConfigurationModelParser {
324324
result[key] = this.filterByScope(properties[key], configurationProperties, false, scopes);
325325
} else {
326326
const scope = this.getScope(key, configurationProperties);
327-
if (scopes.indexOf(scope) !== -1) {
327+
// Load unregistered configurations always.
328+
if (scope === undefined || scopes.indexOf(scope) !== -1) {
328329
result[key] = properties[key];
329330
}
330331
}
331332
}
332333
return result;
333334
}
334335

335-
private getScope(key: string, configurationProperties: { [qualifiedKey: string]: IConfigurationPropertySchema }): ConfigurationScope {
336+
private getScope(key: string, configurationProperties: { [qualifiedKey: string]: IConfigurationPropertySchema }): ConfigurationScope | undefined {
336337
const propertySchema = configurationProperties[key];
337-
return propertySchema && typeof propertySchema.scope !== 'undefined' ? propertySchema.scope : ConfigurationScope.WINDOW;
338+
return propertySchema ? typeof propertySchema.scope !== 'undefined' ? propertySchema.scope : ConfigurationScope.WINDOW : undefined;
338339
}
339340
}
340341

0 commit comments

Comments
 (0)