Do not add to recent files list when running with "--diff" (fixes #12049)

This commit is contained in:
Benjamin Pasero 2016-09-15 07:27:54 +02:00
parent 663bb3f730
commit a4a100213d

View file

@ -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);