We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af23248 commit 785a044Copy full SHA for 785a044
1 file changed
src/vs/code/node/cli.ts
@@ -67,10 +67,11 @@ export async function main(argv: string[]): TPromise<any> {
67
}
68
69
// If we are running with input from stdin, pipe that into a file and
70
- // open this file via arguments.
+ // open this file via arguments. Ignore this when we are passed with
71
+ // paths to open.
72
let isReadingFromStdin: boolean;
73
try {
- isReadingFromStdin = !process.stdin.isTTY; // Via https://twitter.com/MylesBorins/status/782009479382626304
74
+ isReadingFromStdin = args._.length === 0 && !process.stdin.isTTY; // Via https://twitter.com/MylesBorins/status/782009479382626304
75
} catch (error) {
76
// Windows workaround for https://github.com/nodejs/node/issues/11656
77
0 commit comments