debt - more real events over eventemitter

This commit is contained in:
Benjamin Pasero
2016-11-18 07:35:11 +01:00
parent ffed6f3d7d
commit a87342ef05
4 changed files with 32 additions and 38 deletions

View File

@@ -6,22 +6,21 @@
import { ILifecycleMainService } from 'vs/platform/lifecycle/common/mainLifecycle';
import { IVSCodeWindow } from 'vs/code/common/window';
import { TPromise } from 'vs/base/common/winjs.base';
import Event, { Emitter } from 'vs/base/common/event';
export class TestLifecycleService implements ILifecycleMainService {
public _serviceBrand: any;
private _onBeforeUnload = new Emitter<IVSCodeWindow>();
onBeforeUnload: Event<IVSCodeWindow> = this._onBeforeUnload.event;
private _onBeforeQuit = new Emitter<void>();
onBeforeQuit: Event<void> = this._onBeforeQuit.event;
public get wasUpdated(): boolean {
return false;
}
public onBeforeQuit(clb: () => void): () => void {
return () => { };
}
public onAfterUnload(clb: (vscodeWindow: IVSCodeWindow) => void): () => void {
return () => { };
}
public ready(): void {
}