{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/317","repository_url":"https://api.github.com/repos/Microsoft/vscode-go","labels_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/317/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/317/events","html_url":"https://github.com/Microsoft/vscode-go/issues/317","id":152752746,"number":317,"title":"Allow reading from stdin","user":{"login":"prasannavl","id":559409,"avatar_url":"https://avatars.githubusercontent.com/u/559409?v=3","gravatar_id":"","url":"https://api.github.com/users/prasannavl","html_url":"https://github.com/prasannavl","followers_url":"https://api.github.com/users/prasannavl/followers","following_url":"https://api.github.com/users/prasannavl/following{/other_user}","gists_url":"https://api.github.com/users/prasannavl/gists{/gist_id}","starred_url":"https://api.github.com/users/prasannavl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasannavl/subscriptions","organizations_url":"https://api.github.com/users/prasannavl/orgs","repos_url":"https://api.github.com/users/prasannavl/repos","events_url":"https://api.github.com/users/prasannavl/events{/privacy}","received_events_url":"https://api.github.com/users/prasannavl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-03T11:32:24Z","updated_at":"2016-05-06T13:12:07Z","closed_at":null,"body":"Allow \"-\" commandline flag instead of a file name to allow reading from stdin. \r\n\r\nThis is very useful when working with the commandline, and to pass the result directly into the editor. Unfortunately, not make programs support this on Windows (Notepad, Sublime etc), however *nix programs tend to do so. \r\n\r\nEg: `ls -Force -Recurse | vim -` \r\n\r\nAllow doing something like this for the VS Code command line. "},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-go/issues/comments/217435777","html_url":"https://github.com/Microsoft/vscode-go/issues/317#issuecomment-217435777","issue_url":"https://api.github.com/repos/Microsoft/vscode-go/issues/317","id":217435777,"user":{"login":"jakearchibald","id":93594,"avatar_url":"https://avatars.githubusercontent.com/u/93594?v=3","gravatar_id":"","url":"https://api.github.com/users/jakearchibald","html_url":"https://github.com/jakearchibald","followers_url":"https://api.github.com/users/jakearchibald/followers","following_url":"https://api.github.com/users/jakearchibald/following{/other_user}","gists_url":"https://api.github.com/users/jakearchibald/gists{/gist_id}","starred_url":"https://api.github.com/users/jakearchibald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakearchibald/subscriptions","organizations_url":"https://api.github.com/users/jakearchibald/orgs","repos_url":"https://api.github.com/users/jakearchibald/repos","events_url":"https://api.github.com/users/jakearchibald/events{/privacy}","received_events_url":"https://api.github.com/users/jakearchibald/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T13:12:07Z","updated_at":"2016-05-06T13:12:07Z","body":"Just ran into this issue. It's especially useful for getting a file out of git's history, eg:\r\n\r\n```sh\r\ngit show branch-name path/to/file.js | code\r\n```\r\n\r\nFWIW, this works in Sublime & Atom."}}