@@ -420,9 +420,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
420
420
bind ( SerialService )
421
421
. toDynamicValue ( ( context ) => {
422
422
const connection = context . container . get ( WebSocketConnectionProvider ) ;
423
- const client = context . container . get < SerialServiceClient > (
424
- SerialServiceClient
425
- ) ;
423
+ const client =
424
+ context . container . get < SerialServiceClient > ( SerialServiceClient ) ;
426
425
return connection . createProxy ( SerialServicePath , client ) ;
427
426
} )
428
427
. inSingletonScope ( ) ;
@@ -486,11 +485,12 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
486
485
. inSingletonScope ( ) ;
487
486
rebind ( TheiaEditorWidgetFactory ) . to ( EditorWidgetFactory ) . inSingletonScope ( ) ;
488
487
rebind ( TabBarToolbarFactory ) . toFactory (
489
- ( { container : parentContainer } ) => ( ) => {
490
- const container = parentContainer . createChild ( ) ;
491
- container . bind ( TabBarToolbar ) . toSelf ( ) . inSingletonScope ( ) ;
492
- return container . get ( TabBarToolbar ) ;
493
- }
488
+ ( { container : parentContainer } ) =>
489
+ ( ) => {
490
+ const container = parentContainer . createChild ( ) ;
491
+ container . bind ( TabBarToolbar ) . toSelf ( ) . inSingletonScope ( ) ;
492
+ return container . get ( TabBarToolbar ) ;
493
+ }
494
494
) ;
495
495
bind ( OutputWidget ) . toSelf ( ) . inSingletonScope ( ) ;
496
496
rebind ( TheiaOutputWidget ) . toService ( OutputWidget ) ;
@@ -655,15 +655,13 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
655
655
656
656
// Enable the dirty indicator on uncloseable widgets.
657
657
rebind ( TabBarRendererFactory ) . toFactory ( ( context ) => ( ) => {
658
- const contextMenuRenderer = context . container . get < ContextMenuRenderer > (
659
- ContextMenuRenderer
660
- ) ;
658
+ const contextMenuRenderer =
659
+ context . container . get < ContextMenuRenderer > ( ContextMenuRenderer ) ;
661
660
const decoratorService = context . container . get < TabBarDecoratorService > (
662
661
TabBarDecoratorService
663
662
) ;
664
- const iconThemeService = context . container . get < IconThemeService > (
665
- IconThemeService
666
- ) ;
663
+ const iconThemeService =
664
+ context . container . get < IconThemeService > ( IconThemeService ) ;
667
665
return new TabBarRenderer (
668
666
contextMenuRenderer ,
669
667
decoratorService ,
@@ -723,7 +721,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
723
721
bindViewContribution ( bind , SketchbookWidgetContribution ) ;
724
722
bind ( FrontendApplicationContribution ) . toService ( SketchbookWidgetContribution ) ;
725
723
bind ( WidgetFactory ) . toDynamicValue ( ( { container } ) => ( {
726
- id : 'arduino-sketchbook-widget' ,
724
+ id : SketchbookWidget . ID ,
727
725
createWidget : ( ) => container . get ( SketchbookWidget ) ,
728
726
} ) ) ;
729
727
0 commit comments