src/vs/workbench/services/lifecycle/browser/lifecycleService.ts/BrowserLifecycleService/withExpectedUnload
class BrowserLifecycleService:	withExpectedUnload(callback: Function): void {
		this.expectedUnload = true;
		try {
			callback();
		} finally {
			this.expectedUnload = false;
		}
	}