Improve installation of npm-based language servers

* Use --prefix flag to guarantee that they are installed in .zed
* Use the @latest tag when available
* Extract helper functions

Co-authored-by: Keith Simmons <keith@zed.dev>
cf9efd7005Max Brunsfeld committed on 3/30/2022, 11:48:59 PMparent4805cfe
6 files changedLine totals unavailable