OpenLiberty / OpenLiberty/liberty-tools-eclipse

Clicking MP config props link in hover opens `file:///...` URL in browser rather than opening file in IDE source editor

Open
#191 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
16
Forks
20
Avg merge
2d 9h
Merged PRs (30d)
16

Description

With the MP LS hover support for config props, hovering over the 'name' attribute String value pops up help text that appears to read like Javadoc-style info, with a file URL link.

E.g. I might see something like:

abc=23 in META-INF/microprofile-config.properties

where META-INF/microprofile-config.properties is hyperlinked to a URL: file:///<path-to-proj-home>/src/main/resources/META-INF/microprofile-config.properties.

If I click on this it opens the file in a browser. However it would be more useful to open in the IDE editor.

Assuming this would likely need to be addressed in the LSP4MP source though not knowing for sure, it is conceivable at least there might be an Eclipse preference that could be relevant.

Opened here to track until we open an issue with LSP4MP

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 tracing the MicroProfile Language Server Protocol (LSP4MP) hover support and the Eclipse integration that handles the linked file URL. Check whether an Eclipse preference or the link-handling implementation controls the behavior, then verify that clicking the META-INF/microprofile-config.properties link opens the file in the IDE editor instead of a browser.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, 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.