mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:03:42 +01:00
debt - more real events over eventemitter
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user