redhat-developer / redhat-developer/vscode-java

offer to import explicit class reference when anywhere on the class name

Open
#2,040 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

code action enhancement
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

lets say you have java.util.stream.Stream.concat(...) then please provide quick fix on "Stream" or even anywhere on the class name to turn it into:

import java.util.stream.Stream;
...
Stream.concat(...);

today you can only get quick fix offered if you are on the "concat" method name.

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 quick-fix behavior in the VS Code Java extension with java.util.stream.Stream.concat(...), checking the current result on the class name and method name. Trace the quick-fix entry point responsible for unresolved imports; done means the same import suggestion is offered from anywhere on Stream and produces the shown import and shortened call.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.