Skip to content

Commit

Permalink
Changed '-' command-line feature to support multi-line input.
Browse files Browse the repository at this point in the history
  • Loading branch information
msfterictraut committed Jun 26, 2023
1 parent 85c840c commit 4527c5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pyright-internal/src/pyright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ async function processArgs(): Promise<ExitStatus> {
try {
const stdText = fs.readFileSync(process.stdin.fd, 'utf-8');
fileSpecList = stdText
.replace(/[\r\n]/g, ' ')
.trim()
.split(' ')
.map((s) => s.trim())
Expand Down

0 comments on commit 4527c5b

Please sign in to comment.