Skip to content

Layout improvements of the filter for boards and libs manager #1369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do not limit lib search results.
Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
Akos Kitta committed Aug 27, 2022
commit 168bbf17494ffeae45528d6bb93495835d5b69ea
3 changes: 2 additions & 1 deletion arduino-ide-extension/src/node/library-service-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { ILogger, notEmpty } from '@theia/core';
import { FileUri } from '@theia/core/lib/node';
import { ResponseService, NotificationServiceServer } from '../common/protocol';
import { ExecuteWithProgress } from './grpc-progressible';
import { duration } from '../common/decorators';

@injectable()
export class LibraryServiceImpl
Expand All @@ -44,6 +45,7 @@ export class LibraryServiceImpl
@inject(NotificationServiceServer)
protected readonly notificationServer: NotificationServiceServer;

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