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

Cannot add spaces when Enum has cases #5707

Closed
junichi11 opened this issue Mar 24, 2023 · 0 comments · Fixed by #5710
Closed

Cannot add spaces when Enum has cases #5707

junichi11 opened this issue Mar 24, 2023 · 0 comments · Fixed by #5710
Assignees
Labels
kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor)
Milestone

Comments

@junichi11
Copy link
Member

junichi11 commented Mar 24, 2023

Apache NetBeans version

Apache NetBeans 17

What happened

Cannot add spaces when Enum has cases.

How to reproduce

Example code

enum Enum1 {
    case A = 'A';
    case B = 'B';
    ^here
}

Also a switch statement.

switch ($variable) {
    case 1:
        break;
    case 2:
        break;
    ^here
}

Steps to reproduce

  1. Move the caret to under the line of case B = 'B;'
  2. Type the space key
  3. Can't add spaces

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu 22.04

JDK

OpenJDK 11.0.18

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

Yes

@junichi11 junichi11 added kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor) labels Mar 24, 2023
@junichi11 junichi11 added this to the NB18 milestone Mar 24, 2023
@junichi11 junichi11 self-assigned this Mar 24, 2023
junichi11 added a commit to junichi11/netbeans that referenced this issue Mar 24, 2023
junichi11 added a commit to junichi11/netbeans that referenced this issue Mar 24, 2023
@junichi11 junichi11 linked a pull request Mar 24, 2023 that will close this issue
tmysik added a commit that referenced this issue Mar 25, 2023
Fix an issue that whitespace cannot be added #5707
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant