Skip to content

Commit

Permalink
Add uniqueItems rule for simple arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Sep 27, 2016
1 parent 2c123f3 commit 08507ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vs/platform/extensions/common/extensionsRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ const schema: IJSONSchema = {
categories: {
description: nls.localize('vscode.extension.categories', 'The categories used by the VS Code gallery to categorize the extension.'),
type: 'array',
uniqueItems: true,
items: {
type: 'string',
enum: ['Languages', 'Snippets', 'Linters', 'Themes', 'Debuggers', 'Productivity', 'Other']
Expand Down Expand Up @@ -290,6 +291,7 @@ const schema: IJSONSchema = {
extensionDependencies: {
description: nls.localize('vscode.extension.extensionDependencies', 'Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp.'),
type: 'array',
uniqueItems: true,
items: {
type: 'string'
}
Expand Down

0 comments on commit 08507ca

Please sign in to comment.