mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-05 04:04:10 +01:00
fix setTimeout leak in search view (#184537)
fixes https://github.com/microsoft/vscode/issues/184536
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user