From eaa648574d2a61140221a5e0dd3eea56ae11e60e Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 12 Aug 2022 15:27:42 +0200 Subject: [PATCH] Update view size proposal (#157996) --- src/vs/workbench/api/browser/viewsExtensionPoint.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/api/browser/viewsExtensionPoint.ts b/src/vs/workbench/api/browser/viewsExtensionPoint.ts index dc9fc1750b96a..6d4252593788f 100644 --- a/src/vs/workbench/api/browser/viewsExtensionPoint.ts +++ b/src/vs/workbench/api/browser/viewsExtensionPoint.ts @@ -98,7 +98,7 @@ interface IUserFriendlyViewDescriptor { contextualTitle?: string; visibility?: string; - size?: number; + initialSize?: number; // From 'remoteViewDescriptor' type group?: string; @@ -508,10 +508,10 @@ class ViewsExtensionHandler implements IWorkbenchContribution { } let weight: number | undefined = undefined; - if (typeof item.size === 'number') { + if (typeof item.initialSize === 'number') { checkProposedApiEnabled(extension.description, 'contribViewSize'); if (container.extensionId?.value === extension.description.identifier.value) { - weight = item.size; + weight = item.initialSize; } else { this.logService.warn(`${extension.description.identifier.value} tried to set the view size of ${item.id} but it was ignored because the view container does not belong to it.`); }