Use leading flag set to true in debouncing events from extension trees (#88051)

* Use leading flag set to true in debouncing events from extension trees

* - remove the flag for debounce in extHostTreeView
- refactor test extHostTreeView's test to test prod behavior
- fix a small bug in debounce

* Minor cleanup
This commit is contained in:
Konstantin Solomatov
2020-01-24 03:02:19 -08:00
committed by Alex Ross
parent bfee2e5cdc
commit 28bf0b1f56
4 changed files with 158 additions and 111 deletions

View File

@@ -237,7 +237,7 @@ class ExtHostTreeView<T> extends Disposable {
result.message = true;
}
return result;
}, 200)(({ message, elements }) => {
}, 200, true)(({ message, elements }) => {
if (elements.length) {
this.refreshQueue = this.refreshQueue.then(() => {
const _promiseCallback = promiseCallback;