Skip to content

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

Closed
eclipse-jdtls/eclipse.jdt.ls
#3244
@yuyully

Description

@yuyully
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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    ✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions