Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e6b9d4e

Browse files
authored
Override the RELOAD_REQUESTED_SIGNAL correctly (#880)
1 parent 93a374d commit e6b9d4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎arduino-ide-extension/src/electron-main/theia/electron-main-application.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { URI } from '@theia/core/shared/vscode-uri';
1818
import * as electronRemoteMain from '@theia/core/electron-shared/@electron/remote/main';
1919
import { Deferred } from '@theia/core/lib/common/promise-util';
2020
import * as os from '@theia/core/lib/common/os';
21+
import { RELOAD_REQUESTED_SIGNAL, Restart } from '@theia/core/lib/electron-common/messaging/electron-messages';
2122

2223
app.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
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /