vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Import from code actions doesn't work well after delete java file which is created from code actions

Open yuyully opened this issue 1 year ago • 0 comments

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
  1. Set "editor.pasteAs.enabled": false in settings.json
  2. 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
  3. 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

import not work import is missing

Expected Result
Additional Informations

yuyully avatar May 30 '24 08:05 yuyully