yaml_language_server.py 754 B

1234567891011121314151617181920212223
  1. from .config import load_config_schema
  2. from .utils import NodeModuleSpec
  3. class YAMLLanguageServer(NodeModuleSpec):
  4. node_module = key = "yaml-language-server"
  5. script = ["bin", key]
  6. args = ["--stdio"]
  7. languages = ["yaml"]
  8. spec = dict(
  9. display_name=key,
  10. mime_types=["text/x-yaml", "text/yaml"],
  11. urls=dict(
  12. home="https://github.com/redhat-developer/{}".format(key),
  13. issues="https://github.com/redhat-developer/{}/issues".format(key),
  14. ),
  15. install=dict(
  16. npm="npm install --save-dev {}".format(key),
  17. yarn="yarn add --dev {}".format(key),
  18. jlpm="jlpm add --dev {}".format(key),
  19. ),
  20. config_schema=load_config_schema(key),
  21. )