cleanup and shuffle some code

This commit is contained in:
Benjamin Pasero
2016-11-23 19:49:16 +01:00
parent 6087cb1e44
commit 80f7791279
9 changed files with 67 additions and 120 deletions

View File

@@ -1,34 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
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 _onBeforeQuit = new Emitter<void>();
onBeforeQuit: Event<void> = this._onBeforeQuit.event;
public get wasUpdated(): boolean {
return false;
}
public ready(): void {
}
public registerWindow(vscodeWindow: IVSCodeWindow): void {
}
public unload(vscodeWindow: IVSCodeWindow): TPromise<boolean /* veto */> {
return TPromise.as(false);
}
public quit(fromUpdate?: boolean): TPromise<boolean /* veto */> {
return TPromise.as(false);
}
}