#1112569 RFP: yaml-language-server -- Language Server for YAML files with jsonschema validation

#1112569#5
Date:
2025-08-31 06:11:15 UTC
From:
To:
* Package name    : yaml-language-server
   Version         : 1.18.0
   Upstream Contact: Name <somebody@example.org>
* URL             : https://github.com/redhat-developer/yaml-language-server
* License         : MIT/X
   Programming Lang: node JS
   Description     : Language Server for YAML files with jsonschema
validation

The yaml-language-server provides editor support for YAML files
via the Language Server Protocol (LSP). Beyond basic generic YAML
features, it can also use JSON schemas to enhances its support for
concrete YAML formats. For added user friendliness, it can
optionally fetch the schemas from schemastore.org



The language server is currently the default in many editors used in
Debian such as emacs, vim, and kate (full list upstream knows about is
at
https://github.com/redhat-developer/yaml-language-server?tab=readme-ov-file#clients)

Due to the recently created debian-json-schemas project
(https://salsa.debian.org/debian/debian-json-schemas), this language
server will also provide domain specific editor support for
`debian/upstream/metadata` (known field names, basic linting, and hover
docs) once these editors have been taught that
`debian/upstream/metadata` is a YAML file[1].

I ran `pkgjs-depends` on the mainline branch of upstream to gather an
overview of the situation and it responded with the following output.

$ pkgjs-depends
# yaml-language-server@1.19.0
# 8 missing npm module(s)
DEPENDENCIES:
   node-ajv (ajv)
   node-lodash (lodash)
   node-vscode-languageserver (vscode-languageserver)
   node-vscode-languageserver-textdocument
(vscode-languageserver-textdocument)
   node-vscode-languageserver-types (vscode-languageserver-types)
   node-yaml (yaml)

MISSING:
yaml-language-server@1.19.0
  └── @vscode/l10n (0.0.18)
  └── ajv-draft-04 (1.0.0)
  └── prettier (3.6.2)
  └── request-light (0.5.8)
  └── vscode-json-languageservice (4.1.8)
      └── jsonc-parser (3.3.1)
      └── vscode-nls (5.2.0)
      └── vscode-uri (3.1.0)
  └── (^) vscode-uri (3.1.0)

I have not dug further into this and Javascript packaging is not in my
current skill set, so I am hoping an javascript skilled contributor will
pick this one up to make Debian packaging more tool assisted.

Best regards,
Niels


[1]:
Kate:
https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/737
Emacs: #1112562
Vim: https://salsa.debian.org/vim-team/vim-debian/-/issues/7