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

Package's code is not written when adding new java file #1289

Closed
loralei28 opened this issue Feb 1, 2024 · 1 comment
Closed

Package's code is not written when adding new java file #1289

loralei28 opened this issue Feb 1, 2024 · 1 comment
Labels

Comments

@loralei28
Copy link

Environment:

  • VS Code Version:1.85.2
  • Extension Version:1.27.0
  • JDK Type & Version:17.0.9 <build 17.0.9+9-Ubuntu-122.04>
  • OS Type & Version: WSL

Step to Reproduce:

  1. Go to File Explorer view and select the project https://github.com/spring-projects/spring-petclinic.
  2. Right click on java file, and run "New File" menu.
  3. Input file name with "Hello.java".
  4. Verify that a new file snippet is generated.

Expected Behavior:
image

Actual Behavior:
image

@testforstephen
Copy link
Contributor

Cannot reproduce it. If you create a Java file before Java extension is ready (the status bar shows Java: Ready), it only generates the class body without package name. This is by design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants