redhat-developer / redhat-developer/quarkus-ls

Support for @withDefault("some value")

Open
#1,087 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

SmallRye provides @withDefault("some value") annotation to define default value which is working like @ConfigProperty/defaultValue

It would be nice to provide the same support than @ConfigProperty/defaultValue:

  • validate value of @withDefault
  • show as inlay hint (or codelens) the default value from properties file.

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 by locating the existing support for @ConfigProperty/defaultValue in the language server and trace how its values are validated and displayed. Then inspect how @withDefault("some value") is represented, with done defined as matching that support for validation and showing the default from the properties file as an inlay hint or code lens.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience
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.