fix setTimeout leak in search view (#184537)

fixes https://github.com/microsoft/vscode/issues/184536
This commit is contained in:
Simon Siefke
2023-06-08 10:08:18 -07:00
committed by GitHub
parent 908b24de44
commit 68fdecfdc1
@@ -1535,11 +1535,10 @@ export class SearchView extends ViewPane {
private _updateResults() {
if (this.state === SearchUIState.Idle) {
return;
}
try {
if (this.state === SearchUIState.Idle) {
return;
}
// Search result tree update
const fileCount = this.viewModel.searchResult.fileCount();
if (this._visibleMatches !== fileCount) {