Skip to content

Commit 6c0fe8c

Browse files
committed
--diff does not work with WSL. Fixes microsoft#83473
1 parent 7d0267f commit 6c0fe8c

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/vs/code/node/paths.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/vs/platform/windows/electron-main/windowsMainService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)