@@ -25,8 +25,6 @@ import {
25
25
LocalStorageService ,
26
26
OnWillStopAction ,
27
27
SaveableWidget ,
28
- StatusBar ,
29
- StatusBarAlignment ,
30
28
} from '@theia/core/lib/browser' ;
31
29
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution' ;
32
30
import { ColorRegistry } from '@theia/core/lib/browser/color-registry' ;
@@ -57,7 +55,6 @@ import {
57
55
} from '../common/protocol/sketches-service-client-impl' ;
58
56
import { ArduinoCommands } from './arduino-commands' ;
59
57
import { ArduinoPreferences } from './arduino-preferences' ;
60
- import { BoardsConfig } from './boards/boards-config' ;
61
58
import { BoardsConfigDialog } from './boards/boards-config-dialog' ;
62
59
import { BoardsServiceProvider } from './boards/boards-service-provider' ;
63
60
import { BoardsToolBarItem } from './boards/boards-toolbar-item' ;
@@ -104,9 +101,6 @@ export class ArduinoFrontendContribution
104
101
@inject ( CommandRegistry )
105
102
private readonly commandRegistry : CommandRegistry ;
106
103
107
- @inject ( StatusBar )
108
- private readonly statusBar : StatusBar ;
109
-
110
104
@inject ( ArduinoPreferences )
111
105
private readonly arduinoPreferences : ArduinoPreferences ;
112
106
@@ -162,36 +156,6 @@ export class ArduinoFrontendContribution
162
156
)
163
157
) ;
164
158
}
165
- const updateStatusBar = ( {
166
- selectedBoard,
167
- selectedPort,
168
- } : BoardsConfig . Config ) => {
169
- this . statusBar . setElement ( 'arduino-selected-board' , {
170
- alignment : StatusBarAlignment . RIGHT ,
171
- text : selectedBoard
172
- ? `$(microchip) ${ selectedBoard . name } `
173
- : `$(close) ${ nls . localize (
174
- 'arduino/common/noBoardSelected' ,
175
- 'No board selected'
176
- ) } `,
177
- className : 'arduino-selected-board' ,
178
- } ) ;
179
- if ( selectedBoard ) {
180
- this . statusBar . setElement ( 'arduino-selected-port' , {
181
- alignment : StatusBarAlignment . RIGHT ,
182
- text : selectedPort
183
- ? nls . localize (
184
- 'arduino/common/selectedOn' ,
185
- 'on {0}' ,
186
- selectedPort . address
187
- )
188
- : nls . localize ( 'arduino/common/notConnected' , '[not connected]' ) ,
189
- className : 'arduino-selected-port' ,
190
- } ) ;
191
- }
192
- } ;
193
- this . boardsServiceClientImpl . onBoardsConfigChanged ( updateStatusBar ) ;
194
- updateStatusBar ( this . boardsServiceClientImpl . boardsConfig ) ;
195
159
this . appStateService . reachedState ( 'ready' ) . then ( async ( ) => {
196
160
const sketch = await this . sketchServiceClient . currentSketch ( ) ;
197
161
if (
@@ -282,6 +246,7 @@ export class ArduinoFrontendContribution
282
246
webContents . setZoomLevel ( zoomLevel ) ;
283
247
} ) ;
284
248
249
+ // Removes the _Settings_ (cog) icon from the left sidebar
285
250
app . shell . leftPanelHandler . removeBottomMenu ( 'settings-menu' ) ;
286
251
287
252
this . fileSystemFrontendContribution . onDidChangeEditorFile (
0 commit comments