mason.nvim
mason.nvim copied to clipboard
[New package]: Home Assistant
I've searched open & closed issues for similar requests
Yes
Package name
home-assistant-language-server
Package homepage
https://github.com/keesschollaart81/vscode-home-assistant/tree/dev/src/language-service
Languages
YAML
How is this package distributed?
This is more of a request for help than a request for a package. I would like to add this package to the Mason registry but I'm not sure how to do it. Unlike the typescript-language-server home-assistant-language-server doesn't have a bin
field in the package.json
. I couldn't find documentation on what exactly npm:typescript-language-server
does, but I assume it's at some point calling executing this binary using npm.
As mentioned home-assistant-language-server doesn't have a bin
configured in it's package.json so I assume the same wouldn't work. So what would work? Should I write a wrapper like https://github.com/mason-org/r-languageserver or should I make a PR so that home-assistant-language-server does have a bin
field?
If I do find a solution; how do I know it works before I open a PR to mason-registry? I can see that there is a lint script but is there also a way to test that I can install using the configuration I'm about to contribute? Can I add my local checkout of mason-registry as a registry for example?
For what it's worth I have the home-assistant-language server working using https://gist.github.com/pstuifzand/6efa1bac4618252d9e44297c36c0ef77 but I'd much rather have it working the same way all my other LSPs are setup.
Hello! Pull requests are always very welcomed to add new packages. If the distribution of the package is simple, the installation will most likely be so as well. See CONTRIBUTING.md and the API reference for more details! You may also use existing packages as reference.
🤖 This is an automated comment.
📖 Source code