提交 644ba504 编写于 作者: D Daniel Imms

Handle onExitAndWindowClose ShutdownReason.LOAD

上级 749f99aa
......@@ -204,7 +204,11 @@ export abstract class TextFileService implements ITextFileService {
break;
case ShutdownReason.LOAD:
doBackup = false; // do not backup because we are switching contexts
if (this.contextService.hasWorkspace() && this.configuredHotExit === HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE) {
doBackup = true; // backup if a folder is open and onExitAndWindowClose is configured
} else {
doBackup = false; // do not backup because we are switching contexts
}
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册