redhat-developer / redhat-developer/yaml-language-server

GitlabCI Support

Open
#972 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing the existing YAML language-server support for definitions, references, includes, and code lenses; done means GitLab CI jobs and objects can be navigated, referenced usages are shown, and included files resolve correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.