mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
Shutdown glob pattern searching process after 1s of idle time
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user