mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Update view size proposal (#157996)
This commit is contained in:
parent
7dd5f05b6e
commit
eaa648574d
|
@ -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.`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue