Do not add to recent files list when running with "--diff" (fixes #12049)
This commit is contained in:
parent
663bb3f730
commit
a4a100213d
|
@ -700,7 +700,8 @@ export class WindowsManager implements IWindowsService {
|
|||
}
|
||||
|
||||
// Remember in recent document list (unless this opens for extension development)
|
||||
if (!openConfig.cli.extensionDevelopmentPath) {
|
||||
// Also do not add paths when files are opened for diffing, only if opened individually
|
||||
if (!openConfig.cli.extensionDevelopmentPath && !openConfig.cli.diff) {
|
||||
iPathsToOpen.forEach(iPath => {
|
||||
if (iPath.filePath || iPath.workspacePath) {
|
||||
app.addRecentDocument(iPath.filePath || iPath.workspacePath);
|
||||
|
|
Loading…
Reference in a new issue