microsoft / vscode-black-formatter

Formatting support for Python using the Black formatter
https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter
MIT License
150 stars 35 forks source link

Use pipe transport to communicate between LSP client server #410

Closed karthiknadig closed 8 months ago

karthiknadig commented 9 months ago

Fixes https://github.com/microsoft/vscode-black-formatter/issues/280

A common issue with stdio transport is that some packages can print to stdout on load. In this PR we use pipe transport which uses Named Pipes on windows, and Unix Domain Sockets on non-windows OSes and should avoid breaking the communication due to stdout printing by tools.