提交 7f5744c1 编写于 作者: J Jackson Kearl

Try logging the URL's we get at time of open

上级 bcc9532c
......@@ -15,6 +15,7 @@ export function validatePaths(args: ParsedArgs): ParsedArgs {
// Track URLs if they're going to be used
if (args['open-url']) {
console.log('paths#validate', JSON.stringify(args._), JSON.stringify(args._urls));
args._urls = args._;
args._ = [];
}
......
......@@ -36,6 +36,8 @@ function parseOpenUrl(args: ParsedArgs): URI[] {
if (args['open-url'] && args._urls && args._urls.length > 0) {
// --open-url must contain -- followed by the url(s)
// process.argv is used over args._ as args._ are resolved to file paths at this point
console.log('Launch main service # parseOpenURl' + JSON.stringify(args._urls));
(globalThis as any)['launchMainService#parseOpenUrl'] = args._urls;
return coalesce(args._urls
.map(url => {
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册