Skip to content

Commit

Permalink
Schema validation for icon in built in view containers
Browse files Browse the repository at this point in the history
Part of #240707
  • Loading branch information
alexr00 committed Feb 17, 2025
1 parent d2294bc commit 5b759c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/api/browser/viewsExtensionPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ enum InitialVisibility {

const viewDescriptor: IJSONSchema = {
type: 'object',
required: ['id', 'name'],
defaultSnippets: [{ body: { id: '${1:id}', name: '${2:name}' } }],
required: ['id', 'name', 'icon'],
defaultSnippets: [{ body: { id: '${1:id}', name: '${2:name}', icon: '${3:icon}' } }],
properties: {
type: {
markdownDescription: localize('vscode.extension.contributes.view.type', "Type of the view. This can either be `tree` for a tree view based view or `webview` for a webview based view. The default is `tree`."),
Expand Down

0 comments on commit 5b759c5

Please sign in to comment.