Fix issue where loading unsave sql file open as untitiledEditorInput (#385)

* fix issue where loading unsave sql file open as untitiledEditorInput

* add SQL CARBON EDIT comment
This commit is contained in:
Abbie Petchtes
2018-01-02 13:36:43 -08:00
committed by Karl Burtram
parent 1dea81f82f
commit da75681f83
2 changed files with 16 additions and 6 deletions

View File

@@ -366,9 +366,7 @@ export abstract class TextFileService implements ITextFileService {
}
// Hot exit
// {{SQL CARBON EDIT}}
// const hotExitMode = configuration && configuration.files ? configuration.files.hotExit : HotExitConfiguration.ON_EXIT;
const hotExitMode = HotExitConfiguration.OFF;
const hotExitMode = configuration && configuration.files ? configuration.files.hotExit : HotExitConfiguration.ON_EXIT;
if (hotExitMode === HotExitConfiguration.OFF || hotExitMode === HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE) {
this.configuredHotExit = hotExitMode;
} else {