Skip to content

shorten the location of the resource in new property navigation feature #1032

Closed

Description

@martinlippert

#761 introduced the ability to navigate from usages of properties using the @Value annotation to the definition of those properties in e.g. application.properties files. If there are multiple locations to navigate to, there is a popup showing up, letting the the user choose to which location to navigate to.

The popup shows Open Declaration - <full URI of the resource>. At the moment the absolute path of the resource is shown, which results in very long lines and unnecessary information to be shown, since the resource is located in the project or the workspace. We should shorten this line to show only the information that is necessary, e.g. only the path inside of the project or the path from the projects root onwards.

If this is something that needs to be fixed in LSP4E, we should transfer this to LSP4E and fix it there.

Activity

  1. added this to the Backlog milestone on Apr 29, 2023
  2. BoykoAlex commented on Apr 29, 2023

    @BoykoAlex
    Contributor

    Yes, i saw that popup... Sounds good to me - will look into this.

  3. BoykoAlex commented on May 1, 2023

    @BoykoAlex
    Contributor

    @martinlippert How about Open Declaration - project: (project name) - (project relative path)?

  4. BoykoAlex commented on May 1, 2023

    @BoykoAlex
    Contributor
  5. BoykoAlex commented on May 2, 2023

    @BoykoAlex
    Contributor

    Fixed in LSP4E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions