From 490ef761b76b3f3b3832eff7a588aac891e5fe80 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Wed, 10 Jan 2018 16:38:12 +0100 Subject: [PATCH] fix opening urls as files --- src/vs/code/node/paths.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/code/node/paths.ts b/src/vs/code/node/paths.ts index cafef96fd3a4c..d54353ff72ee4 100644 --- a/src/vs/code/node/paths.ts +++ b/src/vs/code/node/paths.ts @@ -18,6 +18,7 @@ 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