@@ -20,8 +20,6 @@ import {
20
20
LocalStorageService ,
21
21
OnWillStopAction ,
22
22
SaveableWidget ,
23
- StatusBar ,
24
- StatusBarAlignment ,
25
23
} from '@theia/core/lib/browser' ;
26
24
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution' ;
27
25
import { ColorRegistry } from '@theia/core/lib/browser/color-registry' ;
@@ -52,7 +50,6 @@ import {
52
50
} from '../common/protocol/sketches-service-client-impl' ;
53
51
import { ArduinoCommands } from './arduino-commands' ;
54
52
import { ArduinoPreferences } from './arduino-preferences' ;
55
- import { BoardsConfig } from './boards/boards-config' ;
56
53
import { BoardsConfigDialog } from './boards/boards-config-dialog' ;
57
54
import { BoardsServiceProvider } from './boards/boards-service-provider' ;
58
55
import { BoardsToolBarItem } from './boards/boards-toolbar-item' ;
@@ -92,9 +89,6 @@ export class ArduinoFrontendContribution
92
89
@inject ( CommandRegistry )
93
90
private readonly commandRegistry : CommandRegistry ;
94
91
95
- @inject ( StatusBar )
96
- private readonly statusBar : StatusBar ;
97
-
98
92
@inject ( ArduinoPreferences )
99
93
private readonly arduinoPreferences : ArduinoPreferences ;
100
94
@@ -129,36 +123,6 @@ export class ArduinoFrontendContribution
129
123
)
130
124
) ;
131
125
}
132
- const updateStatusBar = ( {
133
- selectedBoard,
134
- selectedPort,
135
- } : BoardsConfig . Config ) => {
136
- this . statusBar . setElement ( 'arduino-selected-board' , {
137
- alignment : StatusBarAlignment . RIGHT ,
138
- text : selectedBoard
139
- ? `$(microchip) ${ selectedBoard . name } `
140
- : `$(close) ${ nls . localize (
141
- 'arduino/common/noBoardSelected' ,
142
- 'No board selected'
143
- ) } `,
144
- className : 'arduino-selected-board' ,
145
- } ) ;
146
- if ( selectedBoard ) {
147
- this . statusBar . setElement ( 'arduino-selected-port' , {
148
- alignment : StatusBarAlignment . RIGHT ,
149
- text : selectedPort
150
- ? nls . localize (
151
- 'arduino/common/selectedOn' ,
152
- 'on {0}' ,
153
- selectedPort . address
154
- )
155
- : nls . localize ( 'arduino/common/notConnected' , '[not connected]' ) ,
156
- className : 'arduino-selected-port' ,
157
- } ) ;
158
- }
159
- } ;
160
- this . boardsServiceClientImpl . onBoardsConfigChanged ( updateStatusBar ) ;
161
- updateStatusBar ( this . boardsServiceClientImpl . boardsConfig ) ;
162
126
this . appStateService . reachedState ( 'ready' ) . then ( async ( ) => {
163
127
const sketch = await this . sketchServiceClient . currentSketch ( ) ;
164
128
if (
@@ -249,6 +213,7 @@ export class ArduinoFrontendContribution
249
213
webContents . setZoomLevel ( zoomLevel ) ;
250
214
} ) ;
251
215
216
+ // Removes the _Settings_ (cog) icon from the left sidebar
252
217
app . shell . leftPanelHandler . removeBottomMenu ( 'settings-menu' ) ;
253
218
254
219
this . fileSystemFrontendContribution . onDidChangeEditorFile (
0 commit comments