File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
arduino-ide-extension/src/electron-main/theia Expand file tree Collapse file tree 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';
1818import * as electronRemoteMain from '@theia/core/electron-shared/@electron/remote/main' ;
1919import { Deferred } from '@theia/core/lib/common/promise-util' ;
2020import * as os from '@theia/core/lib/common/os' ;
21+ import { RELOAD_REQUESTED_SIGNAL , Restart } from '@theia/core/lib/electron-common/messaging/electron-messages' ;
2122
2223app . commandLine . appendSwitch ( 'disable-http-cache' ) ;
2324
@@ -157,7 +158,9 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
157158 app . on ( 'second-instance' , this . onSecondInstance . bind ( this ) ) ;
158159 app . on ( 'window-all-closed' , this . onWindowAllClosed . bind ( this ) ) ;
159160
160- ipcMain . on ( 'restart' , ( { sender } ) => {
161+ ipcMain . on ( RELOAD_REQUESTED_SIGNAL , event => this . handleReload ( event ) ) ;
162+
163+ ipcMain . on ( Restart , ( { sender } ) => {
161164 this . restart ( sender . id ) ;
162165 } ) ;
163166 }
You can’t perform that action at this time.
0 commit comments