File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
arduino-ide-extension/src/node Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { ILogger, notEmpty } from '@theia/core';
26
26
import { FileUri } from '@theia/core/lib/node' ;
27
27
import { ResponseService , NotificationServiceServer } from '../common/protocol' ;
28
28
import { ExecuteWithProgress } from './grpc-progressible' ;
29
+ import { duration } from '../common/decorators' ;
29
30
30
31
@injectable ( )
31
32
export class LibraryServiceImpl
@@ -44,6 +45,7 @@ export class LibraryServiceImpl
44
45
@inject ( NotificationServiceServer )
45
46
protected readonly notificationServer : NotificationServiceServer ;
46
47
48
+ @duration ( )
47
49
async search ( options : { query ?: string } ) : Promise < LibraryPackage [ ] > {
48
50
const coreClient = await this . coreClient ;
49
51
const { client, instance } = coreClient ;
@@ -78,7 +80,6 @@ export class LibraryServiceImpl
78
80
const items = resp
79
81
. getLibrariesList ( )
80
82
. filter ( ( item ) => ! ! item . getLatest ( ) )
81
- . slice ( 0 , 50 )
82
83
. map ( ( item ) => {
83
84
// TODO: This seems to contain only the latest item instead of all of the items.
84
85
const availableVersions = item
You can’t perform that action at this time.
0 commit comments