提交 1fb1deb3 编写于 作者: B Benjamin Pasero

avoid "empty window" term

上级 52004b4c
......@@ -280,7 +280,7 @@ export class WindowsManager implements IWindowsMainService {
const hotExitRestore = (openConfig.initialStartup && !openConfig.cli.extensionDevelopmentPath);
const foldersToRestore = hotExitRestore ? this.backupService.getWorkspaceBackupPaths() : [];
let emptyToRestore = hotExitRestore ? this.backupService.getEmptyWorkspaceBackupPaths() : [];
emptyToRestore.push(...windowsToOpen.filter(w => !w.workspacePath && w.backupPath).map(w => path.basename(w.backupPath))); // add empty windows with backupPath
emptyToRestore.push(...windowsToOpen.filter(w => !w.workspacePath && w.backupPath).map(w => path.basename(w.backupPath))); // add empty workspaces with backupPath
emptyToRestore = arrays.distinct(emptyToRestore); // prevent duplicates
// Open based on config
......@@ -557,11 +557,11 @@ export class WindowsManager implements IWindowsMainService {
switch (restoreWindows) {
// none: we always open an empty window
// none: we always open an empty workspace
case 'none':
return [Object.create(null)];
// one: restore last opened folder or empty window
// one: restore last opened folder or empty workspace
case 'one':
if (lastActiveWindow) {
......@@ -574,7 +574,7 @@ export class WindowsManager implements IWindowsMainService {
}
}
// otherwise use backup path to restore empty windows
// otherwise use backup path to restore empty workspaces
else if (lastActiveWindow.backupPath) {
return [{ backupPath: lastActiveWindow.backupPath }];
}
......@@ -613,7 +613,7 @@ export class WindowsManager implements IWindowsMainService {
break;
}
// Always fallback to empty window
// Always fallback to empty workspace
return [Object.create(null)];
}
......
......@@ -235,12 +235,12 @@ Note that there can still be cases where this setting is ignored (e.g. when usin
'enum': ['all', 'folders', 'one', 'none'],
'enumDescriptions': [
nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'window.reopenFolders.all' }, "Reopen all windows."),
nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'window.reopenFolders.folders' }, "Reopen all folders. Empty windows will not be restored."),
nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'window.reopenFolders.folders' }, "Reopen all folders. Empty workspaces will not be restored."),
nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'window.reopenFolders.one' }, "Reopen the last active window."),
nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'window.reopenFolders.none' }, "Never reopen a window. Always start with an empty one.")
],
'default': 'one',
'description': nls.localize('restoreWindows', "Controls how windows are being reopened after a restart. Select 'none' to always start with an empty window, 'one' to reopen the last window you worked on, 'folders' to reopen all folders you had opened or 'all' to reopen all windows of your last session.")
'description': nls.localize('restoreWindows', "Controls how windows are being reopened after a restart. Select 'none' to always start with an empty workspace, 'one' to reopen the last window you worked on, 'folders' to reopen all folders you had opened or 'all' to reopen all windows of your last session.")
},
'window.restoreFullscreen': {
'type': 'boolean',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册