Make sure we layout editors in sideBySideEditor after they are created (#125445)

Fixes #125202

This make sure we always invoke `layout` when a new editor is created in a split view. Due to the caching added in 0449a18b7b, the `WebviewEditor` created by the split view never had `layout` called on it

Not sure if this is best fix for this issue. If not, I suggest we revert 0449a18b7b and then revisit it next iteration
This commit is contained in:
Matt Bierner 2021-06-04 01:23:49 -07:00 committed by GitHub
parent 387e2f39eb
commit 8163cfd8c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,6 +219,8 @@ export class SideBySideEditor extends EditorPane {
this.secondaryEditorPane.setInput(secondaryInput, undefined, context, token),
this.primaryEditorPane.setInput(primaryInput, options, context, token)]
);
this.layout(this.dimension);
}
override updateStyles(): void {