From a0402376dd3fe056c7e9a3a2e5a4af9769af5817 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 19 Oct 2016 10:48:35 -0700 Subject: [PATCH] Disable hot exit on Mac See #12400 & #13305 --- src/vs/workbench/services/textfile/browser/textFileService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/services/textfile/browser/textFileService.ts b/src/vs/workbench/services/textfile/browser/textFileService.ts index 1b6b854fda5ce..bf65b91ad3009 100644 --- a/src/vs/workbench/services/textfile/browser/textFileService.ts +++ b/src/vs/workbench/services/textfile/browser/textFileService.ts @@ -4,6 +4,7 @@ *--------------------------------------------------------------------------------------------*/ 'use strict'; +import * as platform from 'vs/base/common/platform'; import { TPromise } from 'vs/base/common/winjs.base'; import URI from 'vs/base/common/uri'; import paths = require('vs/base/common/paths'); @@ -117,7 +118,8 @@ export abstract class TextFileService implements ITextFileService { private beforeShutdown(): boolean | TPromise { // If hot exit is enabled then save the dirty files in the workspace and then exit - if (this.configuredHotExit && this.contextService.getWorkspace()) { + // Hot exit is currently disabled for both empty workspaces (#13733) and on Mac (#13305) + if (this.configuredHotExit && this.contextService.getWorkspace() && !platform.isMacintosh) { // If there are no dirty files, clean up and exit if (this.getDirty().length === 0) { return this.cleanupBackupsBeforeShutdown();