redhat-developer / redhat-developer/vscode-java

Organize imports enhancement

Open
#2,748 0 comments 1 reaction 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

Currently "Organize imports" will do three things:

  • Add missing imports
  • Remove all unused imports
  • Sort existing imports

And there are serveral requests about feature "Organize imports":

Organize import without sorting:

Organize imports (and other code actions) in multiple files:

We can find rooms to improve. Although we have configuration java.completion.importOrder, it's not such visible and it's hard to "hardcode" a package list for some users. In this way, we can have serveral points to improve:

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

No files or tests are named. Start by reviewing the linked issues and pull requests, then trace the existing Organize imports flow and its single-file code actions; done means supporting code actions at folder level without regressing the existing add, remove, and sort behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
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.