redhat-developer / redhat-developer/quarkus-ls

Property expression completion for application.yaml files

Open
#360 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
50
Forks
18
Avg merge
22h 11m
Merged PRs (30d)
3

Description

In application.yaml, property expressions: https://quarkus.io/guides/config#using-property-expressions work as expected.

greeting:
  hello: ${greet}
hello: hi there

Currently, application.yaml support is available thanks generating a JSON schema here: https://github.com/eclipse/lsp4mp/blob/82c4798ac142efeb06499ece053407ef01009d46/microprofile.ls/org.eclipse.lsp4mp.ls/src/main/java/org/eclipse/lsp4mp/ls/ApplicationPropertiesTextDocumentService.java#L409-L415

and contributing it to vscode-yaml.

It would be great if we could have completion items when triggering completion after the ${ although I'm not sure if this is possible at the moment. Needs investigation.

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

Start with ApplicationPropertiesTextDocumentService.java around lines 409-415 and review how the generated schema is contributed to vscode-yaml for application.yaml. Investigate whether completion can be provided after ${; done means property-expression completion items appear when completion is triggered at that position.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.