@@ -9,7 +9,10 @@ import {
9
9
FrontendApplicationContribution ,
10
10
FrontendApplication as TheiaFrontendApplication ,
11
11
} from '@theia/core/lib/browser/frontend-application' ;
12
- import { LibraryListWidget } from './library/library-list-widget' ;
12
+ import {
13
+ LibraryListWidget ,
14
+ LibraryListWidgetSearchOptions ,
15
+ } from './library/library-list-widget' ;
13
16
import { ArduinoFrontendContribution } from './arduino-frontend-contribution' ;
14
17
import {
15
18
LibraryService ,
@@ -25,7 +28,10 @@ import {
25
28
} from '../common/protocol/sketches-service' ;
26
29
import { SketchesServiceClientImpl } from './sketches-service-client-impl' ;
27
30
import { CoreService , CoreServicePath } from '../common/protocol/core-service' ;
28
- import { BoardsListWidget } from './boards/boards-list-widget' ;
31
+ import {
32
+ BoardsListWidget ,
33
+ BoardsListWidgetSearchOptions ,
34
+ } from './boards/boards-list-widget' ;
29
35
import { BoardsListWidgetFrontendContribution } from './boards/boards-widget-frontend-contribution' ;
30
36
import { BoardsServiceProvider } from './boards/boards-service-provider' ;
31
37
import { WorkspaceService as TheiaWorkspaceService } from '@theia/workspace/lib/browser/workspace-service' ;
@@ -73,7 +79,10 @@ import {
73
79
} from '../common/protocol/config-service' ;
74
80
import { MonitorWidget } from './serial/monitor/monitor-widget' ;
75
81
import { MonitorViewContribution } from './serial/monitor/monitor-view-contribution' ;
76
- import { TabBarDecoratorService as TheiaTabBarDecoratorService } from '@theia/core/lib/browser/shell/tab-bar-decorator' ;
82
+ import {
83
+ TabBarDecorator ,
84
+ TabBarDecoratorService as TheiaTabBarDecoratorService ,
85
+ } from '@theia/core/lib/browser/shell/tab-bar-decorator' ;
77
86
import { TabBarDecoratorService } from './theia/core/tab-bar-decorator' ;
78
87
import { ProblemManager as TheiaProblemManager } from '@theia/markers/lib/browser' ;
79
88
import { ProblemManager } from './theia/markers/problem-manager' ;
@@ -313,10 +322,10 @@ import { PreferencesEditorWidget } from './theia/preferences/preference-editor-w
313
322
import { PreferencesWidget } from '@theia/preferences/lib/browser/views/preference-widget' ;
314
323
import { createPreferencesWidgetContainer } from '@theia/preferences/lib/browser/views/preference-widget-bindings' ;
315
324
import {
316
- BoardsFilterRenderer ,
317
- LibraryFilterRenderer ,
318
- } from './widgets/component-list/filter-renderer' ;
319
- import { CheckForUpdates } from './contributions/check-for-updates' ;
325
+ CheckForUpdates ,
326
+ BoardsUpdates ,
327
+ LibraryUpdates ,
328
+ } from './contributions/check-for-updates' ;
320
329
import { OutputEditorFactory } from './theia/output/output-editor-factory' ;
321
330
import { StartupTaskProvider } from '../electron-common/startup-task' ;
322
331
import { DeleteSketch } from './contributions/delete-sketch' ;
@@ -356,6 +365,11 @@ import { Account } from './contributions/account';
356
365
import { SidebarBottomMenuWidget } from './theia/core/sidebar-bottom-menu-widget' ;
357
366
import { SidebarBottomMenuWidget as TheiaSidebarBottomMenuWidget } from '@theia/core/lib/browser/shell/sidebar-bottom-menu-widget' ;
358
367
import { CreateCloudCopy } from './contributions/create-cloud-copy' ;
368
+ import {
369
+ BoardsListWidgetTabBarDecorator ,
370
+ LibraryListWidgetTabBarDecorator ,
371
+ } from './widgets/component-list/list-widget-tabbar-decorator' ;
372
+ import { HoverService } from './theia/core/hover-service' ;
359
373
360
374
export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
361
375
// Commands and toolbar items
@@ -371,8 +385,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
371
385
372
386
// Renderer for both the library and the core widgets.
373
387
bind ( ListItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
374
- bind ( LibraryFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
375
- bind ( BoardsFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
376
388
377
389
// Library service
378
390
bind ( LibraryService )
@@ -395,6 +407,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
395
407
LibraryListWidgetFrontendContribution
396
408
) ;
397
409
bind ( OpenHandler ) . toService ( LibraryListWidgetFrontendContribution ) ;
410
+ bind ( TabBarToolbarContribution ) . toService (
411
+ LibraryListWidgetFrontendContribution
412
+ ) ;
413
+ bind ( CommandContribution ) . toService ( LibraryListWidgetFrontendContribution ) ;
414
+ bind ( LibraryListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
398
415
399
416
// Sketch list service
400
417
bind ( SketchesService )
@@ -464,6 +481,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
464
481
BoardsListWidgetFrontendContribution
465
482
) ;
466
483
bind ( OpenHandler ) . toService ( BoardsListWidgetFrontendContribution ) ;
484
+ bind ( TabBarToolbarContribution ) . toService (
485
+ BoardsListWidgetFrontendContribution
486
+ ) ;
487
+ bind ( CommandContribution ) . toService ( BoardsListWidgetFrontendContribution ) ;
488
+ bind ( BoardsListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
467
489
468
490
// Board select dialog
469
491
bind ( BoardsConfigDialogWidget ) . toSelf ( ) . inSingletonScope ( ) ;
@@ -1034,4 +1056,20 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
1034
1056
bind ( FrontendApplicationContribution ) . toService ( DaemonPort ) ;
1035
1057
bind ( IsOnline ) . toSelf ( ) . inSingletonScope ( ) ;
1036
1058
bind ( FrontendApplicationContribution ) . toService ( IsOnline ) ;
1059
+
1060
+ bind ( HoverService ) . toSelf ( ) . inSingletonScope ( ) ;
1061
+ bind ( LibraryUpdates ) . toSelf ( ) . inSingletonScope ( ) ;
1062
+ bind ( FrontendApplicationContribution ) . toService ( LibraryUpdates ) ;
1063
+ bind ( LibraryListWidgetTabBarDecorator ) . toSelf ( ) . inSingletonScope ( ) ;
1064
+ bind ( TabBarDecorator ) . toService ( LibraryListWidgetTabBarDecorator ) ;
1065
+ bind ( FrontendApplicationContribution ) . toService (
1066
+ LibraryListWidgetTabBarDecorator
1067
+ ) ;
1068
+ bind ( BoardsUpdates ) . toSelf ( ) . inSingletonScope ( ) ;
1069
+ bind ( FrontendApplicationContribution ) . toService ( BoardsUpdates ) ;
1070
+ bind ( BoardsListWidgetTabBarDecorator ) . toSelf ( ) . inSingletonScope ( ) ;
1071
+ bind ( TabBarDecorator ) . toService ( BoardsListWidgetTabBarDecorator ) ;
1072
+ bind ( FrontendApplicationContribution ) . toService (
1073
+ BoardsListWidgetTabBarDecorator
1074
+ ) ;
1037
1075
} ) ;
0 commit comments