@@ -68,6 +68,8 @@ import { ArduinoTabBarDecoratorService } from './shell/arduino-tab-bar-decorator
68
68
import { ProblemManager } from '@theia/markers/lib/browser' ;
69
69
import { ArduinoProblemManager } from './markers/arduino-problem-manager' ;
70
70
import { BoardsAutoInstaller } from './boards/boards-auto-installer' ;
71
+ import { AboutDialog } from '@theia/core/lib/browser/about-dialog' ;
72
+ import { ArduinoAboutDialog } from './customization/arduino-about-dialog' ;
71
73
const ElementQueries = require ( 'css-element-queries/src/ElementQueries' ) ;
72
74
73
75
export default new ContainerModule ( ( bind : interfaces . Bind , unbind : interfaces . Unbind , isBound : interfaces . IsBound , rebind : interfaces . Rebind ) => {
@@ -175,13 +177,12 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
175
177
id : MonitorWidget . ID ,
176
178
createWidget : ( ) => context . container . get ( MonitorWidget )
177
179
} ) ) ;
178
- // Frontend binding for the monitor service.
180
+ // Frontend binding for the monitor service
179
181
bind ( MonitorService ) . toDynamicValue ( context => {
180
182
const connection = context . container . get ( WebSocketConnectionProvider ) ;
181
183
const client = context . container . get ( MonitorServiceClientImpl ) ;
182
184
return connection . createProxy ( MonitorServicePath , client ) ;
183
185
} ) . inSingletonScope ( ) ;
184
- // MonitorConnection
185
186
bind ( MonitorConnection ) . toSelf ( ) . inSingletonScope ( ) ;
186
187
// Monitor service client to receive and delegate notifications from the backend.
187
188
bind ( MonitorServiceClientImpl ) . toSelf ( ) . inSingletonScope ( ) ;
@@ -197,7 +198,7 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
197
198
const themeService = ThemeService . get ( ) ;
198
199
themeService . register ( ...ArduinoTheme . themes ) ;
199
200
200
- // customizing default theia
201
+ // Customizing default Theia layout
201
202
if ( ! ArduinoAdvancedMode . TOGGLED ) {
202
203
unbind ( OutlineViewContribution ) ;
203
204
bind ( OutlineViewContribution ) . to ( SilentOutlineViewContribution ) . inSingletonScope ( ) ;
@@ -218,24 +219,29 @@ export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Un
218
219
unbind ( SearchInWorkspaceFrontendContribution ) ;
219
220
bind ( SearchInWorkspaceFrontendContribution ) . to ( SilentSearchInWorkspaceContribution ) . inSingletonScope ( ) ;
220
221
} else {
221
- // We use this CSS class on the body to modify the visibbility of the close button for the editors and views.
222
+ // We use this CSS class on the body to modify the visibility of the close button for the editors and views.
222
223
document . body . classList . add ( ArduinoAdvancedMode . LS_ID ) ;
223
224
}
224
225
unbind ( FrontendApplication ) ;
225
226
bind ( FrontendApplication ) . to ( ArduinoFrontendApplication ) . inSingletonScope ( ) ;
226
227
227
- // monaco customizations
228
+ // Monaco customizations
228
229
unbind ( MonacoEditorProvider ) ;
229
230
bind ( ArduinoMonacoEditorProvider ) . toSelf ( ) . inSingletonScope ( ) ;
230
231
bind ( MonacoEditorProvider ) . toService ( ArduinoMonacoEditorProvider ) ;
231
232
232
- // decorator customizations
233
+ // Decorator customizations
233
234
unbind ( TabBarDecoratorService ) ;
234
235
bind ( ArduinoTabBarDecoratorService ) . toSelf ( ) . inSingletonScope ( ) ;
235
236
bind ( TabBarDecoratorService ) . toService ( ArduinoTabBarDecoratorService ) ;
236
237
237
- // problem markers
238
+ // Problem markers
238
239
unbind ( ProblemManager ) ;
239
240
bind ( ArduinoProblemManager ) . toSelf ( ) . inSingletonScope ( ) ;
240
241
bind ( ProblemManager ) . toService ( ArduinoProblemManager ) ;
242
+
243
+ // About dialog to show the CLI version
244
+ unbind ( AboutDialog ) ;
245
+ bind ( ArduinoAboutDialog ) . toSelf ( ) . inSingletonScope ( ) ;
246
+ bind ( AboutDialog ) . toService ( ArduinoAboutDialog ) ;
241
247
} ) ;
0 commit comments