From 75abd90ecb8201ad845b266f96220d8adfe19b2d Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 30 Apr 2020 19:23:23 +0900 Subject: Remove tab completion limitation --- src/background/completion/impl/TabRepositoryImpl.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/background') diff --git a/src/background/completion/impl/TabRepositoryImpl.ts b/src/background/completion/impl/TabRepositoryImpl.ts index d16d4c3..5e33e5a 100644 --- a/src/background/completion/impl/TabRepositoryImpl.ts +++ b/src/background/completion/impl/TabRepositoryImpl.ts @@ -1,7 +1,5 @@ import TabRepository, { Tab } from "../TabRepository"; -const COMPLETION_ITEM_LIMIT = 10; - export default class TabRepositoryImpl implements TabRepository { async queryTabs(query: string, excludePinned: boolean): Promise { const tabs = await browser.tabs.query({ currentWindow: true }); @@ -16,7 +14,6 @@ export default class TabRepositoryImpl implements TabRepository { return !(excludePinned && t.pinned); }) .filter((item) => item.id && item.title && item.url) - .slice(0, COMPLETION_ITEM_LIMIT) .map(TabRepositoryImpl.toEntity); } -- cgit v1.2.3