opened
yesmar
username_0
- VSCode Version: 1.4.0
- OS Version:  OS X 10.11.6, Ubuntu Linux 16.04.1 and Windows 10

Steps to Reproduce:

1. Open up a new terminal window
2. Invoke VSCode thusly: `code -g :` or `code -g :9`

If you invoke VSCode from the command line with the `-g` switch but pass in bogus data (specifically, a `:` by itself or with a line number), VSCode will fail with an uncaught exception:

![screen shot 2016-08-21 at 10 53 20 am](https://cloud.githubusercontent.com/assets/721/17839122/a7fabec0-6793-11e6-8e54-6bcb7553bbd7.png)

The exception is the same regardless of OS, which is expected.

Passing `-g` with no argument will cause VSCode to open normally, as will passing in `-g file`, `-g file:` or `-g file:9`.

Recommended behavior for `-g :` and `-g :9` is to act is if `-g` were passed alone. That is, open up a new buffer, but don't try to do any parsing or take anything for granted.
Bogus user input on the command line shouldn't result in an uncaught exception
issue
closed
joaomoreno
username_1
issue