Skip to content

application.yml / properties: mark occurrences of ${} property references #459

@kdvolder

Description

@kdvolder

This a follow up ticket to #427

More specifically point number 1 for this comment:

#427 (comment)

I beleave what is being asked for is a behavior similar to how Java language server implements 'mark occurrences' functionality when you select a variable name in the code.

I.e as show in screenshot below:

mark-occurences

However in our case it would instead do something similar when a property reference inside of a '${...}' is selected.

Example:

spring:
  application:
    name: foo
other:
   property: ${spring.application.name}

We place cursor inside the ${...} and it should mark 'name' as a 'occurrence'.

Since Java language server already does this, I think it shouldn't be too hard for us to do the same using existing LSP support.

Similar functionality could also be implemented for 'application.properties' as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions