mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
improve icon extension point descriptions (for #119101)
This commit is contained in:
parent
bf24c085d1
commit
0a843d1727
|
@ -85,13 +85,13 @@ export class IconExtensionPoint {
|
|||
}
|
||||
|
||||
if (!extensionValue || typeof extensionValue !== 'object') {
|
||||
collector.error(nls.localize('invalid.icons.configuration', "'configuration.icons' must be a array"));
|
||||
collector.error(nls.localize('invalid.icons.configuration', "'configuration.icons' must be an object with the icon names as properties."));
|
||||
return;
|
||||
}
|
||||
|
||||
for (const id in extensionValue) {
|
||||
if (!id.match(iconIdPattern)) {
|
||||
collector.error(nls.localize('invalid.icons.id.format', "'configuration.icons' ids can only contain letter, digits and minuses and need to consist of at least two segments in the form `component-iconname`."));
|
||||
collector.error(nls.localize('invalid.icons.id.format', "'configuration.icons' keys represent the icon id and can only contain letter, digits and minuses. They need to consist of at least two segments in the form `component-iconname`."));
|
||||
return;
|
||||
}
|
||||
const iconContribution = extensionValue[id];
|
||||
|
|
Loading…
Reference in a new issue