We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RELOAD_REQUESTED_SIGNAL
1 parent 93a374d commit e6b9d4eCopy full SHA for e6b9d4e
arduino-ide-extension/src/electron-main/theia/electron-main-application.ts
@@ -18,6 +18,7 @@ import { URI } from '@theia/core/shared/vscode-uri';
18
import * as electronRemoteMain from '@theia/core/electron-shared/@electron/remote/main';
19
import { Deferred } from '@theia/core/lib/common/promise-util';
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';
22
23
app.commandLine.appendSwitch('disable-http-cache');
24
@@ -157,7 +158,9 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
157
158
app.on('second-instance', this.onSecondInstance.bind(this));
159
app.on('window-all-closed', this.onWindowAllClosed.bind(this));
160
- ipcMain.on('restart', ({ sender }) => {
161
+ ipcMain.on(RELOAD_REQUESTED_SIGNAL, event => this.handleReload(event));
162
+
163
+ ipcMain.on(Restart, ({ sender }) => {
164
this.restart(sender.id);
165
});
166
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments