提交 3408691c 编写于 作者: D Daniel Imms

Fix empty workspace window reload

Fixes #15400
上级 5ba34ae5
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册