提交 6245f44c 编写于 作者: B Benjamin Pasero

go through our lifecycle when reloading from dev tools (fixes #5409)

上级 be48a08c
......@@ -853,6 +853,8 @@ export class WindowsManager {
WindowsManager.WINDOWS.push(vscodeWindow);
// Window Events
vscodeWindow.win.webContents.removeAllListeners('devtools-reload-page'); // remove built in listener so we can handle this on our own
vscodeWindow.win.webContents.on('devtools-reload-page', () => this.reload(vscodeWindow));
vscodeWindow.win.webContents.on('crashed', () => this.onWindowError(vscodeWindow, WindowError.CRASHED));
vscodeWindow.win.on('unresponsive', () => this.onWindowError(vscodeWindow, WindowError.UNRESPONSIVE));
vscodeWindow.win.on('close', () => this.onBeforeWindowClose(vscodeWindow));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册