Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998 (#7880)

* Merge from vscode c58aaab8a1cc22a7139b761166a0d4f37d41e998

* fix pipelines

* fix strict-null-checks

* add missing files
This commit is contained in:
Anthony Dresser
2019-10-21 22:12:22 -07:00
committed by GitHub
parent 7c9be74970
commit 1e22f47304
913 changed files with 18898 additions and 16536 deletions

View File

@@ -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(':');
}
}