File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ export class SearchView extends ViewPane {
354
354
// remove old model and use the new searchModel
355
355
searchModel . location = SearchModelLocation . PANEL ;
356
356
searchModel . replaceActive = this . viewModel . isReplaceActive ( ) ;
357
+ searchModel . replaceString = this . searchWidget . getReplaceValue ( ) ;
357
358
this . _onSearchResultChangedDisposable ?. dispose ( ) ;
358
359
this . _onSearchResultChangedDisposable = this . _register ( searchModel . onSearchResultChanged ( ( event ) => this . onSearchResultsChanged ( event ) ) ) ;
359
360
@@ -1613,8 +1614,6 @@ export class SearchView extends ViewPane {
1613
1614
}
1614
1615
}
1615
1616
1616
- this . viewModel . replaceString = this . searchWidget . getReplaceValue ( ) ;
1617
-
1618
1617
const hasResults = ! this . viewModel . searchResult . isEmpty ( ) ;
1619
1618
if ( completed ?. exit === SearchCompletionExitCode . NewSearchStarted ) {
1620
1619
return ;
@@ -1735,6 +1734,8 @@ export class SearchView extends ViewPane {
1735
1734
1736
1735
this . tree . setSelection ( [ ] ) ;
1737
1736
this . tree . setFocus ( [ ] ) ;
1737
+
1738
+ this . viewModel . replaceString = this . searchWidget . getReplaceValue ( ) ;
1738
1739
const result = this . viewModel . search ( query ) ;
1739
1740
return result . asyncResults . then ( ( complete ) => {
1740
1741
clearTimeout ( slowTimer ) ;
You can’t perform that action at this time.
0 commit comments