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

Unable to move resource files in Java Projects view

Open jjoslet opened this issue 2 years ago • 1 comments

A resource file cannot be drag and dropped to any folder in the Java Projects view, some works, some others not.

Step to reproduce

I create a file .env at the root of a Maven project (near the pom.xml) and then I try to move it to different folder:

  • the .vscode folder that contains a launch.json -> doesn't work
  • a newly created folder my-folder -> doesn't work
  • the src\main\resources\ folder -> work as expected After moving it to src\main\resources\ folder, I try to move it back to the root, this doesn't work.

jjoslet avatar Jun 21 '23 11:06 jjoslet

Guess it's related with:

  • https://github.com/microsoft/vscode-java-dependency/blob/main/src/views/DragAndDropController.ts#L238
  • https://github.com/microsoft/vscode-java-dependency/blob/main/src/views/DragAndDropController.ts#L276

jdneo avatar Jun 25 '23 01:06 jdneo