Skip to content

Commit

Permalink
feat: use process.stdout.write instead of console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon committed Jul 12, 2024
1 parent 6640808 commit 27c3548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Service {
})

const len = (new TextEncoder()).encode(request).length
console.log(`Content-Length: ${len}\r\n\r\n${request}`)
process.stdout.write(`Content-Length: ${len}\r\n\r\n${request}`)
log("sent request", request)
}

Expand Down

0 comments on commit 27c3548

Please sign in to comment.