File tree Expand file tree Collapse file tree
platform/windows/electron-main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ export function validatePaths(args: ParsedArgs): ParsedArgs {
2525 args . _ = paths ;
2626 }
2727
28- // Update environment
29- args . diff = args . diff && args . _ . length === 2 ;
30-
3128 return args ;
3229}
3330
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
496496
497497 // Remember in recent document list (unless this opens for extension development)
498498 // Also do not add paths when files are opened for diffing, only if opened individually
499- if ( ! usedWindows . some ( window => window . isExtensionDevelopmentHost ) && ! openConfig . diffMode && ! openConfig . noRecentEntry ) {
499+ if ( ! usedWindows . some ( window => window . isExtensionDevelopmentHost ) && ! ( fileInputs ?. filesToDiff ) && ! openConfig . noRecentEntry ) {
500500 const recents : IRecent [ ] = [ ] ;
501501 for ( let pathToOpen of pathsToOpen ) {
502502 if ( pathToOpen . workspace ) {
You can’t perform that action at this time.
0 commit comments