@@ -43,7 +43,6 @@ import { FileSystemFrontendContribution } from '@theia/filesystem/lib/browser/fi
43
43
import { MonacoMenus } from '@theia/monaco/lib/browser/monaco-menu' ;
44
44
import { FileNavigatorCommands } from '@theia/navigator/lib/browser/navigator-contribution' ;
45
45
import { TerminalMenus } from '@theia/terminal/lib/browser/terminal-frontend-contribution' ;
46
- import { IDEUpdater } from '../common/protocol/ide-updater' ;
47
46
import {
48
47
CurrentSketch ,
49
48
SketchesServiceClientImpl ,
@@ -55,7 +54,6 @@ import { BoardsServiceProvider } from './boards/boards-service-provider';
55
54
import { BoardsToolBarItem } from './boards/boards-toolbar-item' ;
56
55
import { OpenSketchFiles } from './contributions/open-sketch-files' ;
57
56
import { SaveAsSketch } from './contributions/save-as-sketch' ;
58
- import { IDEUpdaterDialog } from './dialogs/ide-updater/ide-updater-dialog' ;
59
57
import { ArduinoMenus } from './menu/arduino-menus' ;
60
58
import { MonitorViewContribution } from './serial/monitor/monitor-view-contribution' ;
61
59
import { ArduinoToolbar } from './toolbar/arduino-toolbar' ;
@@ -104,12 +102,6 @@ export class ArduinoFrontendContribution
104
102
@inject ( FileSystemFrontendContribution )
105
103
private readonly fileSystemFrontendContribution : FileSystemFrontendContribution ;
106
104
107
- @inject ( IDEUpdater )
108
- private readonly updater : IDEUpdater ;
109
-
110
- @inject ( IDEUpdaterDialog )
111
- private readonly updaterDialog : IDEUpdaterDialog ;
112
-
113
105
protected toDisposeOnStop = new DisposableCollection ( ) ;
114
106
115
107
@postConstruct ( )
@@ -159,30 +151,6 @@ export class ArduinoFrontendContribution
159
151
}
160
152
161
153
async onStart ( app : FrontendApplication ) : Promise < void > {
162
- this . updater
163
- . init (
164
- this . arduinoPreferences . get ( 'arduino.ide.updateChannel' ) ,
165
- this . arduinoPreferences . get ( 'arduino.ide.updateBaseUrl' )
166
- )
167
- . then ( ( ) => this . updater . checkForUpdates ( true ) )
168
- . then ( async ( updateInfo ) => {
169
- if ( ! updateInfo ) return ;
170
- const versionToSkip = await this . localStorageService . getData < string > (
171
- SKIP_IDE_VERSION
172
- ) ;
173
- if ( versionToSkip === updateInfo . version ) return ;
174
- this . updaterDialog . open ( updateInfo ) ;
175
- } )
176
- . catch ( ( e ) => {
177
- this . messageService . error (
178
- nls . localize (
179
- 'arduino/ide-updater/errorCheckingForUpdates' ,
180
- 'Error while checking for Arduino IDE updates.\n{0}' ,
181
- e . message
182
- )
183
- ) ;
184
- } ) ;
185
-
186
154
this . arduinoPreferences . onPreferenceChanged ( ( event ) => {
187
155
if ( event . newValue !== event . oldValue ) {
188
156
switch ( event . preferenceName ) {
@@ -192,13 +160,6 @@ export class ArduinoFrontendContribution
192
160
webContents . setZoomLevel ( event . newValue || 0 ) ;
193
161
}
194
162
break ;
195
- case 'arduino.ide.updateChannel' :
196
- case 'arduino.ide.updateBaseUrl' :
197
- this . updater . init (
198
- this . arduinoPreferences . get ( 'arduino.ide.updateChannel' ) ,
199
- this . arduinoPreferences . get ( 'arduino.ide.updateBaseUrl' )
200
- ) ;
201
- break ;
202
163
}
203
164
}
204
165
} ) ;
0 commit comments