Skip to content

Commit

Permalink
Fix search editor scrolled to bottom on first search when editor grou…
Browse files Browse the repository at this point in the history
…p changed. (#134693)

* Fix search editor scrolled to bottom on first search when editor group changed.

* Await model write before setting scroll.

Co-authored-by: Jackson Kearl <jakearl@microsoft.com>
  • Loading branch information
ssigwart and Jackson Kearl authored Oct 26, 2021
1 parent 4935c64 commit e16defc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export class SearchEditor extends BaseTextEditor<SearchEditorViewState> {
});

const searchOperation = await startInput.ongoingSearchOperation;
this.onSearchComplete(searchOperation, config, startInput);
await this.onSearchComplete(searchOperation, config, startInput);
}

private async onSearchComplete(searchOperation: ISearchComplete, startConfig: SearchConfiguration, startInput: SearchEditorInput) {
Expand Down

0 comments on commit e16defc

Please sign in to comment.