Skip to content

Commit

Permalink
fix: make the rebuildCache debounce immediate
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 28, 2021
1 parent 1f76a8b commit 587c3dc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/autocomplete-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,13 @@ export function getProvider() {
_provider.on("rebuild-cache-done", () => {
_hideStatusBarTile()
})
_rebuildCache = debounce(() => {
_provider.rebuildCache()
}, 1000)
_rebuildCache = debounce(
() => {
return _provider.rebuildCache()
},
1000,
true
)
_rebuildCache()
}
return _provider
Expand Down

0 comments on commit 587c3dc

Please sign in to comment.