From 7bb03d7f70c2f34323383846cf0b9d28f27892cd Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Mon, 17 Feb 2025 12:02:45 +0100 Subject: [PATCH] Schema validation for icon in built in view containers (#240989) Part of #240707 --- src/vs/workbench/api/browser/viewsExtensionPoint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/api/browser/viewsExtensionPoint.ts b/src/vs/workbench/api/browser/viewsExtensionPoint.ts index f5a0648d5d1bf..9a40656e99063 100644 --- a/src/vs/workbench/api/browser/viewsExtensionPoint.ts +++ b/src/vs/workbench/api/browser/viewsExtensionPoint.ts @@ -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`."),