redhat-developer / redhat-developer/vscode-java

Enhance Hints and Suggestions

Open
#3,890 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I was using the extension for VSCode, and while it provides some helpful hints, I noticed that it lacks several features available in IntelliJ IDEA and other IDEs. One such feature is the suggestion to refactor traditional switch statements into enhanced switch expressions:

        switch (expression) {
            case 1:
                System.out.println("case 1");
                break;
            case 2:
                System.out.println("case 2");
                break;
            default:
                System.out.println("case 3");
                break;
        }

The extension doesn't suggest refactoring it into the enhanced switch expression, which is a useful feature in many modern IDEs. There are other suggestions that even adding SolarQube it doesn't gets so good as some other IDEs suggestions.

I believe adding support for this kinds of features would significantly improve the developer experience in VSCode when using this extension.

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 locating the VSCode extension's existing hint and refactoring-suggestion implementation. Use the traditional Java switch example in this issue to determine the expected enhanced-switch suggestion; done means that suggestion works reliably, with coverage added alongside the relevant existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.