Skip to content

Commit 6a90438

Browse files
committed
WSL window opening with windows path. Fixes microsoft/vscode-remote-release#1537
1 parent 6bbe006 commit 6a90438

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/vs/code/node/paths.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ export function validatePaths(args: ParsedArgs): ParsedArgs {
1919
args._ = [];
2020
}
2121

22-
// Normalize paths and watch out for goto line mode
23-
const paths = doValidatePaths(args._, args.goto);
22+
if (!args['remote']) {
23+
// Normalize paths and watch out for goto line mode
24+
const paths = doValidatePaths(args._, args.goto);
25+
args._ = paths;
26+
}
2427

2528
// Update environment
26-
args._ = paths;
27-
args.diff = args.diff && paths.length === 2;
29+
args.diff = args.diff && args._.length === 2;
2830

2931
return args;
3032
}
@@ -135,4 +137,4 @@ function toPath(p: IPathWithLineAndColumn): string {
135137
}
136138

137139
return segments.join(':');
138-
}
140+
}

0 commit comments

Comments
 (0)