yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

GitlabCI Support

Open CelianR opened this issue 1 year ago • 1 comments

Is your enhancement related to a problem? Please describe.

YAML is used for GitlabCI, it would be nice to have support for these files such as go-to definitions, code lenses, linting etc.

This would be mainly useful to navigate through jobs that use extends nodes, which might reference jobs from other files.

Describe the solution you would like

Definitions

Go-to definitions of a job referenced within a extends / needs node, a !reference tag. Handle include nodes to go to the referenced files.

Usages

A code-lens for each referenced job or rule can be displayed to show the usages. A job may be referenced within extends or needs nodes and any object can be referenced within !reference tags.

Describe alternatives you have considered

Additional context

Screenshot 2024-05-23 at 13 10 31 Screenshot 2024-05-23 at 13 10 16 Screenshot 2024-05-23 at 13 09 56 Screenshot 2024-05-23 at 13 09 45 Screenshot 2024-05-23 at 13 09 27 Screenshot 2024-05-23 at 13 09 15 Screenshot 2024-05-23 at 13 08 52

CelianR avatar May 23 '24 13:05 CelianR

https://github.com/alesbrelih/gitlab-ci-ls

polyzen avatar Jul 26 '25 03:07 polyzen