open-url changes

This commit is contained in:
Matt Irvine
2018-01-12 12:59:43 -08:00
parent 94bd1c4d7d
commit fcb6f7f9ee
6 changed files with 14 additions and 8 deletions

View File

@@ -15,6 +15,11 @@ import { ParsedArgs } from 'vs/platform/environment/common/environment';
import { realpathSync } from 'vs/base/node/extfs';
export function validatePaths(args: ParsedArgs): ParsedArgs {
// Track URLs if they're going to be used
if (args['open-url']) {
args._urls = args._;
args._ = [];
}
// Realpath/normalize paths and watch out for goto line mode
const paths = doValidatePaths(args._, args.goto);