Skip to content

Commit 168bbf1

Browse files
author
Akos Kitta
committed
Do not limit lib search results.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 28a506b commit 168bbf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-ide-extension/src/node/library-service-impl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { ILogger, notEmpty } from '@theia/core';
2626
import { FileUri } from '@theia/core/lib/node';
2727
import { ResponseService, NotificationServiceServer } from '../common/protocol';
2828
import { ExecuteWithProgress } from './grpc-progressible';
29+
import { duration } from '../common/decorators';
2930

3031
@injectable()
3132
export class LibraryServiceImpl
@@ -44,6 +45,7 @@ export class LibraryServiceImpl
4445
@inject(NotificationServiceServer)
4546
protected readonly notificationServer: NotificationServiceServer;
4647

48+
@duration()
4749
async search(options: { query?: string }): Promise<LibraryPackage[]> {
4850
const coreClient = await this.coreClient;
4951
const { client, instance } = coreClient;
@@ -78,7 +80,6 @@ export class LibraryServiceImpl
7880
const items = resp
7981
.getLibrariesList()
8082
.filter((item) => !!item.getLatest())
81-
.slice(0, 50)
8283
.map((item) => {
8384
// TODO: This seems to contain only the latest item instead of all of the items.
8485
const availableVersions = item

0 commit comments

Comments
 (0)