Skip to content

Commit 80f7da8

Browse files
authored
Search result tree drawing glitches (microsoft#202624)
Fixes microsoft#158785
1 parent 85d3cd0 commit 80f7da8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/search/browser/searchView.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ export class SearchView extends ViewPane {
354354
// remove old model and use the new searchModel
355355
searchModel.location = SearchModelLocation.PANEL;
356356
searchModel.replaceActive = this.viewModel.isReplaceActive();
357+
searchModel.replaceString = this.searchWidget.getReplaceValue();
357358
this._onSearchResultChangedDisposable?.dispose();
358359
this._onSearchResultChangedDisposable = this._register(searchModel.onSearchResultChanged((event) => this.onSearchResultsChanged(event)));
359360

@@ -1613,8 +1614,6 @@ export class SearchView extends ViewPane {
16131614
}
16141615
}
16151616

1616-
this.viewModel.replaceString = this.searchWidget.getReplaceValue();
1617-
16181617
const hasResults = !this.viewModel.searchResult.isEmpty();
16191618
if (completed?.exit === SearchCompletionExitCode.NewSearchStarted) {
16201619
return;
@@ -1735,6 +1734,8 @@ export class SearchView extends ViewPane {
17351734

17361735
this.tree.setSelection([]);
17371736
this.tree.setFocus([]);
1737+
1738+
this.viewModel.replaceString = this.searchWidget.getReplaceValue();
17381739
const result = this.viewModel.search(query);
17391740
return result.asyncResults.then((complete) => {
17401741
clearTimeout(slowTimer);

0 commit comments

Comments
 (0)