Shutdown glob pattern searching process after 1s of idle time

This commit is contained in:
Alex Dima
2017-05-29 17:24:43 +02:00
parent 87acd1f584
commit a336df99e3
2 changed files with 4 additions and 3 deletions

View File

@@ -130,7 +130,8 @@ export class ExtensionHostMain {
// `workspaceGlob` or something along those lines?
if (p.indexOf('*') > -1 || p.indexOf('?') > -1) {
if (!this._diskSearch) {
this._diskSearch = new DiskSearch(false);
// Shut down this search process after 1s
this._diskSearch = new DiskSearch(false, 1000);
}
const query: ISearchQuery = {