提交 a3e67ee9 编写于 作者: D Daniel Imms

Move register backups extension dev check back to windows

EnvironmentService's config may be stale.
上级 d979589f
......@@ -767,7 +767,9 @@ export class WindowsManager implements IWindowsMainService {
}
}
this.backupService.registerWindowForBackups(vscodeWindow.id, !configuration.workspacePath, emptyWorkspaceBackupFolder, configuration.workspacePath);
if (!configuration.extensionDevelopmentPath) {
this.backupService.registerWindowForBackups(vscodeWindow.id, !configuration.workspacePath, emptyWorkspaceBackupFolder, configuration.workspacePath);
}
// Only load when the window has not vetoed this
this.lifecycleService.unload(vscodeWindow, UnloadReason.LOAD).done(veto => {
......
......@@ -51,11 +51,6 @@ export class BackupMainService implements IBackupMainService {
}
public registerWindowForBackups(windowId: number, isEmptyWorkspace: boolean, backupFolder?: string, workspacePath?: string): void {
// Backups and hot exit are disabled during extension development
if (this.environmentService.isExtensionDevelopment) {
return;
}
// Generate a new folder if this is a new empty workspace
if (!backupFolder) {
backupFolder = Date.now().toString();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册