microsoft / microsoft/vscode-java-dependency

Link with editor feature selects files on top most Maven project, not the most nearest Java project

Open
#889 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
199
Forks
105
Avg merge
1d 22h
Merged PRs (30d)
27

Description

When building a multi module Maven project with multiple levels like:

.
├── my-project (project)
│   ├── pom.xml
│   ├── module-a  (folder inside a project)
|       └── pom.xml
│   └── module-b (folder inside a project)
|       └── pom.xml
├── module-a  (project)
│   └── pom.xml
├── module-b  (project)
    └── pom.xml

If I open an editor on pom.xml from module-b, the projects tree doesn't link the editor with the last pom.xml inside module-b as a project, it selects pom.xml inside myproject/module-b. It would be really helpful if the project tree selected files inside the most inner java project it find, not the first one occurrence on the entire tree.

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 with the nested multi-module Maven layout described in the report and open module-b/pom.xml in the editor. Then inspect the link-with-editor behavior; done means the project tree selects the file in the nearest inner Java project rather than the first matching project in the tree.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.