File tree 1 file changed +4
-1
lines changed
arduino-ide-extension/src/electron-main/theia
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { URI } from '@theia/core/shared/vscode-uri';
18
18
import * as electronRemoteMain from '@theia/core/electron-shared/@electron/remote/main' ;
19
19
import { Deferred } from '@theia/core/lib/common/promise-util' ;
20
20
import * as os from '@theia/core/lib/common/os' ;
21
+ import { RELOAD_REQUESTED_SIGNAL , Restart } from '@theia/core/lib/electron-common/messaging/electron-messages' ;
21
22
22
23
app . commandLine . appendSwitch ( 'disable-http-cache' ) ;
23
24
@@ -157,7 +158,9 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
157
158
app . on ( 'second-instance' , this . onSecondInstance . bind ( this ) ) ;
158
159
app . on ( 'window-all-closed' , this . onWindowAllClosed . bind ( this ) ) ;
159
160
160
- ipcMain . on ( 'restart' , ( { sender } ) => {
161
+ ipcMain . on ( RELOAD_REQUESTED_SIGNAL , event => this . handleReload ( event ) ) ;
162
+
163
+ ipcMain . on ( Restart , ( { sender } ) => {
161
164
this . restart ( sender . id ) ;
162
165
} ) ;
163
166
}
You can’t perform that action at this time.
0 commit comments