@@ -9,7 +9,10 @@ import {
99 FrontendApplicationContribution ,
1010 FrontendApplication as TheiaFrontendApplication ,
1111} 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' ;
1316import { ArduinoFrontendContribution } from './arduino-frontend-contribution' ;
1417import {
1518 LibraryService ,
@@ -25,7 +28,10 @@ import {
2528} from '../common/protocol/sketches-service' ;
2629import { SketchesServiceClientImpl } from './sketches-service-client-impl' ;
2730import { 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' ;
2935import { BoardsListWidgetFrontendContribution } from './boards/boards-widget-frontend-contribution' ;
3036import { BoardsServiceProvider } from './boards/boards-service-provider' ;
3137import { WorkspaceService as TheiaWorkspaceService } from '@theia/workspace/lib/browser/workspace-service' ;
@@ -73,7 +79,10 @@ import {
7379} from '../common/protocol/config-service' ;
7480import { MonitorWidget } from './serial/monitor/monitor-widget' ;
7581import { 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' ;
7786import { TabBarDecoratorService } from './theia/core/tab-bar-decorator' ;
7887import { ProblemManager as TheiaProblemManager } from '@theia/markers/lib/browser' ;
7988import { ProblemManager } from './theia/markers/problem-manager' ;
@@ -313,10 +322,10 @@ import { PreferencesEditorWidget } from './theia/preferences/preference-editor-w
313322import { PreferencesWidget } from '@theia/preferences/lib/browser/views/preference-widget' ;
314323import { createPreferencesWidgetContainer } from '@theia/preferences/lib/browser/views/preference-widget-bindings' ;
315324import {
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' ;
320329import { OutputEditorFactory } from './theia/output/output-editor-factory' ;
321330import { StartupTaskProvider } from '../electron-common/startup-task' ;
322331import { DeleteSketch } from './contributions/delete-sketch' ;
@@ -356,6 +365,11 @@ import { Account } from './contributions/account';
356365import { SidebarBottomMenuWidget } from './theia/core/sidebar-bottom-menu-widget' ;
357366import { SidebarBottomMenuWidget as TheiaSidebarBottomMenuWidget } from '@theia/core/lib/browser/shell/sidebar-bottom-menu-widget' ;
358367import { 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' ;
359373
360374export default new ContainerModule ( ( bind , unbind , isBound , rebind ) => {
361375 // Commands and toolbar items
@@ -371,8 +385,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
371385
372386 // Renderer for both the library and the core widgets.
373387 bind ( ListItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
374- bind ( LibraryFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
375- bind ( BoardsFilterRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
376388
377389 // Library service
378390 bind ( LibraryService )
@@ -395,6 +407,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
395407 LibraryListWidgetFrontendContribution
396408 ) ;
397409 bind ( OpenHandler ) . toService ( LibraryListWidgetFrontendContribution ) ;
410+ bind ( TabBarToolbarContribution ) . toService (
411+ LibraryListWidgetFrontendContribution
412+ ) ;
413+ bind ( CommandContribution ) . toService ( LibraryListWidgetFrontendContribution ) ;
414+ bind ( LibraryListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
398415
399416 // Sketch list service
400417 bind ( SketchesService )
@@ -464,6 +481,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
464481 BoardsListWidgetFrontendContribution
465482 ) ;
466483 bind ( OpenHandler ) . toService ( BoardsListWidgetFrontendContribution ) ;
484+ bind ( TabBarToolbarContribution ) . toService (
485+ BoardsListWidgetFrontendContribution
486+ ) ;
487+ bind ( CommandContribution ) . toService ( BoardsListWidgetFrontendContribution ) ;
488+ bind ( BoardsListWidgetSearchOptions ) . toSelf ( ) . inSingletonScope ( ) ;
467489
468490 // Board select dialog
469491 bind ( BoardsConfigDialogWidget ) . toSelf ( ) . inSingletonScope ( ) ;
@@ -1034,4 +1056,20 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
10341056 bind ( FrontendApplicationContribution ) . toService ( DaemonPort ) ;
10351057 bind ( IsOnline ) . toSelf ( ) . inSingletonScope ( ) ;
10361058 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+ ) ;
10371075} ) ;
0 commit comments