microsoft / vscode-tye

A Visual Studio Code extension for Tye development
Other
25 stars 9 forks source link

Override use of deprecated netstat on Linux. #185

Closed philliphoff closed 2 years ago

philliphoff commented 2 years ago

So it looks like netstat is no longer installed by default on certain Linux distros (e.g. Ubuntu). This change moves to lsof instead (like on Mac).

Given we're now effectively overriding node-netstats handling on 2 out of 3 platforms (i.e. Mac and Linux), we should consider just handling the lsof ourselves and not be reliant on node-netstat at all. However, that's more of an extensive change that would have to wait.

Resolves #179.