mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
💄
This commit is contained in:
@@ -42,6 +42,7 @@ export interface ILifecycleService {
|
||||
registerWindow(vscodeWindow: IVSCodeWindow): void;
|
||||
unload(vscodeWindow: IVSCodeWindow, reason: UnloadReason): TPromise<boolean /* veto */>;
|
||||
quit(fromUpdate?: boolean): TPromise<boolean /* veto */>;
|
||||
isQuitRequested(): boolean;
|
||||
}
|
||||
|
||||
export class LifecycleService implements ILifecycleService {
|
||||
@@ -209,4 +210,8 @@ export class LifecycleService implements ILifecycleService {
|
||||
|
||||
return this.pendingQuitPromise;
|
||||
}
|
||||
|
||||
public isQuitRequested(): boolean {
|
||||
return !!this.quitRequested;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user