提交 d147ddd4 编写于 作者: J Johannes Rieken

Actually set the maxResults-value when finding files, fixs #697

上级 b086ce41
......@@ -101,7 +101,7 @@ export class MainThreadWorkspace {
this._eventService = eventService;
}
findFiles(include: string, exclude: string, maxResults?: number): Thenable<Uri[]> {
findFiles(include: string, exclude: string, maxResults: number): Thenable<Uri[]> {
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 => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册