Fix cursor position after splitting window (#205107)

The cursor is not in the correct position after splitting the window
Fixes #203969
This commit is contained in:
Alex Ross 2024-02-13 15:47:56 +01:00 committed by GitHub
parent a6a0b0bd91
commit 4531f1a2be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -280,9 +280,9 @@ class DirtyDiffWidget extends PeekViewWidget {
this._actionbarWidget!.context = [diffEditorModel.modified.uri, providerSpecificChanges, contextIndex];
if (usePosition) {
this.show(position, height);
this.editor.setPosition(position);
this.editor.focus();
}
this.editor.setPosition(position);
this.editor.focus();
}
private renderTitle(label: string): void {