提交 6c0fe8cb 编写于 作者: M Martin Aeschlimann

--diff does not work with WSL. Fixes #83473

上级 7d0267f4
...@@ -25,9 +25,6 @@ export function validatePaths(args: ParsedArgs): ParsedArgs { ...@@ -25,9 +25,6 @@ export function validatePaths(args: ParsedArgs): ParsedArgs {
args._ = paths; args._ = paths;
} }
// Update environment
args.diff = args.diff && args._.length === 2;
return args; return args;
} }
......
...@@ -496,7 +496,7 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic ...@@ -496,7 +496,7 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
// Remember in recent document list (unless this opens for extension development) // Remember in recent document list (unless this opens for extension development)
// Also do not add paths when files are opened for diffing, only if opened individually // Also do not add paths when files are opened for diffing, only if opened individually
if (!usedWindows.some(window => window.isExtensionDevelopmentHost) && !openConfig.diffMode && !openConfig.noRecentEntry) { if (!usedWindows.some(window => window.isExtensionDevelopmentHost) && !(fileInputs?.filesToDiff) && !openConfig.noRecentEntry) {
const recents: IRecent[] = []; const recents: IRecent[] = [];
for (let pathToOpen of pathsToOpen) { for (let pathToOpen of pathsToOpen) {
if (pathToOpen.workspace) { if (pathToOpen.workspace) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册