Skip to content

Commit

Permalink
Fix empty workspace window reload
Browse files Browse the repository at this point in the history
Fixes #15400
  • Loading branch information
Tyriar committed Nov 14, 2016
1 parent 5ba34ae commit 3408691
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vs/code/electron-main/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,11 @@ export class VSCodeWindow {
delete configuration.filesToDiff;

// Update untitled files to restore so they come through in the reloaded window
configuration.untitledToRestore = this.backupService.getWorkspaceUntitledFileBackupsSync(Uri.file(configuration.workspacePath)).map(filePath => {
return { filePath };
});
if (configuration.workspacePath) {
configuration.untitledToRestore = this.backupService.getWorkspaceUntitledFileBackupsSync(Uri.file(configuration.workspacePath)).map(filePath => {
return { filePath };
});
}

// Some configuration things get inherited if the window is being reloaded and we are
// in plugin development mode. These options are all development related.
Expand Down

0 comments on commit 3408691

Please sign in to comment.