From 770ac41e1647065c60df987cfb3bcc37c4fb808e Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Tue, 24 Jul 2018 11:31:09 +0200 Subject: [PATCH] symbols: do not limit symbols found from config limiting symbols found from config could lead to confusion when broad search term returns less results that more specific one. Fixes #491 --- src/typescript-service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/typescript-service.ts b/src/typescript-service.ts index fbb00aa98..841d1ef28 100644 --- a/src/typescript-service.ts +++ b/src/typescript-service.ts @@ -1676,9 +1676,8 @@ export class TypeScriptService { if (typeof query === 'string') { // Query by text query - // Limit the amount of symbols searched for text queries return ( - Observable.from(config.getService().getNavigateToItems(query, 100, undefined, false)) + Observable.from(config.getService().getNavigateToItems(query)) // Exclude dependencies and standard library .filter( item => !isTypeScriptLibrary(item.fileName) && !item.fileName.includes('/node_modules/')