mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
icon contribution: add requires (for #117437)
This commit is contained in:
parent
b2273e8074
commit
d4ca8b7f3a
|
@ -38,6 +38,7 @@ const iconConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint<IIco
|
|||
type: 'array',
|
||||
items: {
|
||||
type: 'object',
|
||||
required: ['id', 'description', 'default'],
|
||||
properties: {
|
||||
id: {
|
||||
type: 'string',
|
||||
|
@ -81,6 +82,7 @@ const iconFontConfigurationExtPoint = ExtensionsRegistry.registerExtensionPoint<
|
|||
type: 'array',
|
||||
items: {
|
||||
type: 'object',
|
||||
required: ['id', 'src'],
|
||||
properties: {
|
||||
id: {
|
||||
type: 'string',
|
||||
|
@ -142,7 +144,7 @@ export class IconExtensionPoint {
|
|||
collector.error(nls.localize('invalid.icons.id.format', "'configuration.icons.id' can only contain letter, digits and minuses and need to consist of at least two segments in the form `component-iconname`."));
|
||||
return;
|
||||
}
|
||||
if (typeof iconContribution.description !== 'string' || iconContribution.id.length === 0) {
|
||||
if (typeof iconContribution.description !== 'string' || iconContribution.description.length === 0) {
|
||||
collector.error(nls.localize('invalid.icons.description', "'configuration.icons.description' must be defined and can not be empty"));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue