@@ -27,7 +27,10 @@ import { SketchesServiceClientImpl } from './sketches-service-client-impl';
2727import { CoreService , CoreServicePath } from '../common/protocol/core-service' ;
2828import { BoardsListWidget } from './boards/boards-list-widget' ;
2929import { BoardsListWidgetFrontendContribution } from './boards/boards-widget-frontend-contribution' ;
30- import { BoardsServiceProvider } from './boards/boards-service-provider' ;
30+ import {
31+ BoardListDumper ,
32+ BoardsServiceProvider ,
33+ } from './boards/boards-service-provider' ;
3134import { WorkspaceService as TheiaWorkspaceService } from '@theia/workspace/lib/browser/workspace-service' ;
3235import { WorkspaceService } from './theia/workspace/workspace-service' ;
3336import { OutlineViewContribution as TheiaOutlineViewContribution } from '@theia/outline-view/lib/browser/outline-view-contribution' ;
@@ -61,7 +64,6 @@ import {
6164 BoardsConfigDialog ,
6265 BoardsConfigDialogProps ,
6366} from './boards/boards-config-dialog' ;
64- import { BoardsConfigDialogWidget } from './boards/boards-config-dialog-widget' ;
6567import { ScmContribution as TheiaScmContribution } from '@theia/scm/lib/browser/scm-contribution' ;
6668import { ScmContribution } from './theia/scm/scm-contribution' ;
6769import { SearchInWorkspaceFrontendContribution as TheiaSearchInWorkspaceFrontendContribution } from '@theia/search-in-workspace/lib/browser/search-in-workspace-frontend-contribution' ;
@@ -100,7 +102,7 @@ import {
100102 FrontendConnectionStatusService as TheiaFrontendConnectionStatusService ,
101103 ApplicationConnectionStatusContribution as TheiaApplicationConnectionStatusContribution ,
102104} from '@theia/core/lib/browser/connection-status-service' ;
103- import { BoardsDataMenuUpdater } from './boards /boards-data-menu-updater' ;
105+ import { BoardsDataMenuUpdater } from './contributions /boards-data-menu-updater' ;
104106import { BoardsDataStore } from './boards/boards-data-store' ;
105107import { ILogger } from '@theia/core/lib/common/logger' ;
106108import { bindContributionProvider } from '@theia/core/lib/common/contribution-provider' ;
@@ -208,7 +210,6 @@ import {
208210 MonacoEditorFactory ,
209211 MonacoEditorProvider as TheiaMonacoEditorProvider ,
210212} from '@theia/monaco/lib/browser/monaco-editor-provider' ;
211- import { StorageWrapper } from './storage-wrapper' ;
212213import { NotificationManager } from './theia/messages/notifications-manager' ;
213214import { NotificationManager as TheiaNotificationManager } from '@theia/messages/lib/browser/notifications-manager' ;
214215import { NotificationsRenderer as TheiaNotificationsRenderer } from '@theia/messages/lib/browser/notifications-renderer' ;
@@ -445,11 +446,9 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
445446 bind ( BoardsServiceProvider ) . toSelf ( ) . inSingletonScope ( ) ;
446447 bind ( FrontendApplicationContribution ) . toService ( BoardsServiceProvider ) ;
447448 bind ( CommandContribution ) . toService ( BoardsServiceProvider ) ;
449+ bind ( BoardListDumper ) . toSelf ( ) . inSingletonScope ( ) ;
448450
449451 // To be able to track, and update the menu based on the core settings (aka. board details) of the currently selected board.
450- bind ( FrontendApplicationContribution )
451- . to ( BoardsDataMenuUpdater )
452- . inSingletonScope ( ) ;
453452 bind ( BoardsDataStore ) . toSelf ( ) . inSingletonScope ( ) ;
454453 bind ( FrontendApplicationContribution ) . toService ( BoardsDataStore ) ;
455454 // Logger for the Arduino daemon
@@ -478,7 +477,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
478477 bind ( OpenHandler ) . toService ( BoardsListWidgetFrontendContribution ) ;
479478
480479 // Board select dialog
481- bind ( BoardsConfigDialogWidget ) . toSelf ( ) . inSingletonScope ( ) ;
482480 bind ( BoardsConfigDialog ) . toSelf ( ) . inSingletonScope ( ) ;
483481 bind ( BoardsConfigDialogProps ) . toConstantValue ( {
484482 title : nls . localize (
@@ -751,6 +749,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
751749 Contribution . configure ( bind , CloudSketchbookContribution ) ;
752750 Contribution . configure ( bind , CreateCloudCopy ) ;
753751 Contribution . configure ( bind , UpdateArduinoState ) ;
752+ Contribution . configure ( bind , BoardsDataMenuUpdater ) ;
754753
755754 bindContributionProvider ( bind , StartupTaskProvider ) ;
756755 bind ( StartupTaskProvider ) . toService ( BoardsServiceProvider ) ; // to reuse the boards config in another window
@@ -879,9 +878,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
879878 ) ,
880879 } ) ;
881880
882- bind ( StorageWrapper ) . toSelf ( ) . inSingletonScope ( ) ;
883- bind ( CommandContribution ) . toService ( StorageWrapper ) ;
884-
885881 bind ( NotificationManager ) . toSelf ( ) . inSingletonScope ( ) ;
886882 rebind ( TheiaNotificationManager ) . toService ( NotificationManager ) ;
887883 bind ( NotificationsRenderer ) . toSelf ( ) . inSingletonScope ( ) ;
0 commit comments