提交 3d6b92f9 编写于 作者: M Martin Aeschlimann

When reopen code from WSL2, previous open tabs are not restored. Fixes #107111

上级 65e7a941
...@@ -972,7 +972,7 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic ...@@ -972,7 +972,7 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
if (pathToOpen?.folderUri) { if (pathToOpen?.folderUri) {
windowsToOpen.push(pathToOpen); windowsToOpen.push(pathToOpen);
} }
} else if (restoreWindows !== 'folders' && openedWindow.backupPath && !openedWindow.remoteAuthority) { // Local windows that were empty. Empty windows with backups will always be restored in open() } else if (restoreWindows !== 'folders' && openedWindow.backupPath) { // Empty window, potentially editors open to be restored
windowsToOpen.push({ backupPath: openedWindow.backupPath, remoteAuthority: openedWindow.remoteAuthority }); windowsToOpen.push({ backupPath: openedWindow.backupPath, remoteAuthority: openedWindow.remoteAuthority });
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册