From d147ddd44424e1b244da4cea4083a5b320e9caf5 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 26 Nov 2015 15:13:52 +0100 Subject: [PATCH] Actually set the maxResults-value when finding files, fixs #697 --- src/vs/workbench/api/browser/pluginHostWorkspace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/api/browser/pluginHostWorkspace.ts b/src/vs/workbench/api/browser/pluginHostWorkspace.ts index f68254d2e3d..55b94c717f0 100644 --- a/src/vs/workbench/api/browser/pluginHostWorkspace.ts +++ b/src/vs/workbench/api/browser/pluginHostWorkspace.ts @@ -101,7 +101,7 @@ export class MainThreadWorkspace { this._eventService = eventService; } - findFiles(include: string, exclude: string, maxResults?: number): Thenable { + findFiles(include: string, exclude: string, maxResults: number): Thenable { if (!this._workspace) { return; @@ -110,7 +110,7 @@ export class MainThreadWorkspace { return this._searchService.search({ rootResources: [this._workspace.resource], type: QueryType.File, - maxResults: 100, + maxResults, includePattern: { [include]: true }, excludePattern: { [exclude]: true }, }).then(result => {