Skip to content

Commit eb3ee0b

Browse files
author
Benjamin Pasero
committed
ipc - properly remove vscode:exit raw ipc
1 parent 0a0b16f commit eb3ee0b

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/vs/code/electron-main/app.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,6 @@ export class CodeApplication extends Disposable {
261261
}
262262
});
263263

264-
ipc.on('vscode:exit', (event: Event, code: number) => {
265-
this.logService.trace('IPC#vscode:exit', code);
266-
267-
this.dispose();
268-
this.lifecycleMainService.kill(code);
269-
});
270-
271264
ipc.on('vscode:fetchShellEnv', async (event: IpcMainEvent) => {
272265
const webContents = event.sender;
273266

src/vs/workbench/test/electron-browser/workbenchTestServices.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export class TestElectronService implements IElectronService {
217217
async closeWindow(): Promise<void> { }
218218
async closeWindowById(): Promise<void> { }
219219
async quit(): Promise<void> { }
220+
async exit(code: number): Promise<void> { }
220221
async openDevTools(options?: Electron.OpenDevToolsOptions | undefined): Promise<void> { }
221222
async toggleDevTools(): Promise<void> { }
222223
async startCrashReporter(options: Electron.CrashReporterStartOptions): Promise<void> { }

0 commit comments

Comments
 (0)