Skip to content

Commit eaa6485

Browse files
authored
Update view size proposal (microsoft#157996)
1 parent 7dd5f05 commit eaa6485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/api/browser/viewsExtensionPoint.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ interface IUserFriendlyViewDescriptor {
9898
contextualTitle?: string;
9999
visibility?: string;
100100

101-
size?: number;
101+
initialSize?: number;
102102

103103
// From 'remoteViewDescriptor' type
104104
group?: string;
@@ -508,10 +508,10 @@ class ViewsExtensionHandler implements IWorkbenchContribution {
508508
}
509509

510510
let weight: number | undefined = undefined;
511-
if (typeof item.size === 'number') {
511+
if (typeof item.initialSize === 'number') {
512512
checkProposedApiEnabled(extension.description, 'contribViewSize');
513513
if (container.extensionId?.value === extension.description.identifier.value) {
514-
weight = item.size;
514+
weight = item.initialSize;
515515
} else {
516516
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.`);
517517
}

0 commit comments

Comments
 (0)