@@ -52,8 +52,6 @@ import { ArduinoScmContribution } from './customization/arduino-scm-contribution
52
52
import { SearchInWorkspaceFrontendContribution } from '@theia/search-in-workspace/lib/browser/search-in-workspace-frontend-contribution' ;
53
53
import { ArduinoSearchInWorkspaceContribution } from './customization/arduino-search-in-workspace-contribution' ;
54
54
import { LibraryListWidgetFrontendContribution } from './library/library-widget-frontend-contribution' ;
55
- import { LibraryItemRenderer } from './library/library-item-renderer' ;
56
- import { BoardItemRenderer } from './boards/boards-item-renderer' ;
57
55
import { MonitorServiceClientImpl } from './monitor/monitor-service-client-impl' ;
58
56
import { MonitorServicePath , MonitorService , MonitorServiceClient } from '../common/protocol/monitor-service' ;
59
57
import { ConfigService , ConfigServicePath } from '../common/protocol/config-service' ;
@@ -72,6 +70,7 @@ import { AboutDialog } from '@theia/core/lib/browser/about-dialog';
72
70
import { ArduinoAboutDialog } from './customization/arduino-about-dialog' ;
73
71
import { ArduinoShellLayoutRestorer } from './shell/arduino-shell-layout-restorer' ;
74
72
import { EditorMode } from './editor-mode' ;
73
+ import { ListItemRenderer } from './components/component-list/list-item-renderer' ;
75
74
const ElementQueries = require ( 'css-element-queries/src/ElementQueries' ) ;
76
75
77
76
export default new ContainerModule ( ( bind : interfaces . Bind , unbind : interfaces . Unbind , isBound : interfaces . IsBound , rebind : interfaces . Rebind ) => {
@@ -92,9 +91,11 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
92
91
bind ( LanguageGrammarDefinitionContribution ) . to ( ArduinoLanguageGrammarContribution ) . inSingletonScope ( ) ;
93
92
bind ( LanguageClientContribution ) . to ( ArduinoLanguageClientContribution ) . inSingletonScope ( ) ;
94
93
94
+ // Renderer for both the library and the core widgets.
95
+ bind ( ListItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
96
+
95
97
// Library service
96
98
bind ( LibraryService ) . toDynamicValue ( context => WebSocketConnectionProvider . createProxy ( context . container , LibraryServicePath ) ) . inSingletonScope ( ) ;
97
-
98
99
// Library list widget
99
100
bind ( LibraryListWidget ) . toSelf ( ) ;
100
101
bindViewContribution ( bind , LibraryListWidgetFrontendContribution ) ;
@@ -103,7 +104,6 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
103
104
createWidget : ( ) => context . container . get ( LibraryListWidget )
104
105
} ) ) ;
105
106
bind ( FrontendApplicationContribution ) . toService ( LibraryListWidgetFrontendContribution ) ;
106
- bind ( LibraryItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
107
107
108
108
// Sketch list service
109
109
bind ( SketchesService ) . toDynamicValue ( context => WebSocketConnectionProvider . createProxy ( context . container , SketchesServicePath ) ) . inSingletonScope ( ) ;
@@ -137,7 +137,6 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
137
137
createWidget : ( ) => context . container . get ( BoardsListWidget )
138
138
} ) ) ;
139
139
bind ( FrontendApplicationContribution ) . toService ( BoardsListWidgetFrontendContribution ) ;
140
- bind ( BoardItemRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
141
140
142
141
// Board select dialog
143
142
bind ( BoardsConfigDialogWidget ) . toSelf ( ) . inSingletonScope ( ) ;
0 commit comments