Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: Add missing case labels in switch statements #1140

Closed
vasiltabakov opened this issue Aug 4, 2019 · 0 comments · Fixed by #1346
Closed

[Feature request]: Add missing case labels in switch statements #1140

vasiltabakov opened this issue Aug 4, 2019 · 0 comments · Fixed by #1346

Comments

@vasiltabakov
Copy link

public class Main {

    public enum Numbers {
        One, Two, Three, Four, Five;
    }

    public void testing() {
        Numbers n = Numbers.One;

        switch(n) {
            case Two:
            return;
        }
    }
}

The LS would show messages about missing case labels, but does not offer a code action to automatically add them all.

It would be great to have such a code action.

@vasiltabakov vasiltabakov changed the title [Feature request]: Add missing case labs in switch statements [Feature request]: Add missing case labels in switch statements Aug 4, 2019
@testforstephen testforstephen self-assigned this Aug 25, 2019
@testforstephen testforstephen removed their assignment Sep 25, 2019
@fbricon fbricon added this to the Early February 2020 milestone Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants