mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Do not search for empty glob patterns (#34487)
This commit is contained in:
@@ -204,6 +204,10 @@ export class ExtensionHostMain {
|
||||
}
|
||||
|
||||
private async activateIfGlobPatterns(extensionId: string, globPatterns: string[]): TPromise<void> {
|
||||
if (globPatterns.length === 0) {
|
||||
return TPromise.as(void 0);
|
||||
}
|
||||
|
||||
if (!this._diskSearch) {
|
||||
// Shut down this search process after 1s
|
||||
this._diskSearch = new DiskSearch(false, 1000);
|
||||
|
||||
Reference in New Issue
Block a user