mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 15:25:47 +01:00
WSL window opening with windows path. Fixes https://github.com/microsoft/vscode-remote-release/issues/1537
This commit is contained in:
@@ -19,12 +19,14 @@ export function validatePaths(args: ParsedArgs): ParsedArgs {
|
||||
args._ = [];
|
||||
}
|
||||
|
||||
// Normalize paths and watch out for goto line mode
|
||||
const paths = doValidatePaths(args._, args.goto);
|
||||
if (!args['remote']) {
|
||||
// Normalize paths and watch out for goto line mode
|
||||
const paths = doValidatePaths(args._, args.goto);
|
||||
args._ = paths;
|
||||
}
|
||||
|
||||
// Update environment
|
||||
args._ = paths;
|
||||
args.diff = args.diff && paths.length === 2;
|
||||
args.diff = args.diff && args._.length === 2;
|
||||
|
||||
return args;
|
||||
}
|
||||
@@ -135,4 +137,4 @@ function toPath(p: IPathWithLineAndColumn): string {
|
||||
}
|
||||
|
||||
return segments.join(':');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user