vscode-java
vscode-java copied to clipboard
Import from code actions doesn't work well after delete java file which is created from code actions
Environment
- Operating System: Linux/Win
- JDK version: 21.0.2
- Visual Studio Code version: 1.88.1
- Java extension version: 1.31.0
Steps To Reproduce
- Set
"editor.pasteAs.enabled": falsein settings.json - Copy and paste
File f = new File("demo.txt");in java file > Save file > Select 'create class 'File'' from code actions > Delete the new created File.java > import from code actions doesn't work - Copy and paste
List<String> stringList = new ArrayList<>();in java file > Save file > Select 'create class 'List'' from code actions > Delete the new created List.java > import from code actions is missing
Current Result