spring-projects / spring-projects/spring-tools

[property editing] editing `application.yml` based property files doesn't work as good as `application.properties` files

Open
#1,388 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for: eclipse theme: code completion theme: property-editing-support type: enhancement
Dominant language
Java
Stars
983
Forks
240
Avg merge
7d 1h
Merged PRs (30d)
7

Description

I observed a few things that doesn't work the way they should:

server:
  port: 8080
  <*>

shows all kinds of properties, not just the one that are valid at the server level.
If selecting one of those random proposals, it is not inserted at the right level, but ends up looking like this:

server:
  port: 8088
	spring:
  activemq:
    broker-url:   

Also note that spring is intended with a tab instead of spaces (as the other lines are).

The other non-optimal part is the sorting of proposals, which seems to be a similar issue that we faced with https://github.com/spring-projects/sts4/issues/1342.

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

Reproduce the issue in an application.yml file and compare property editing with application.properties. Investigate proposal filtering at the server level, insertion indentation, and proposal sorting, then verify that valid proposals are inserted at the correct level with consistent spacing and ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
spring-boot, yaml
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.