tunnelvisionlabs / JavaForVS

Java Language Support extension for Visual Studio
https://visualstudiogallery.msdn.microsoft.com/bc561769-36ff-4a40-9504-e266e8706f93/
Other
110 stars 27 forks source link

Renaming/deleting folders in "src" folder tree crashes plugin #25

Open ArcanoxDragon opened 9 years ago

ArcanoxDragon commented 9 years ago

(repost from Microsoft/vsminecraft#18)

I set up a new Java project using the "New MinecraftForge Mod (Minecraft 1.8)" template (from Microsoft's Minecraft plugin), and went to rename the folder "examplemod" under "src/main/java/com" to my own package name using F2. As soon as I hit "Enter", it displayed an error box noting something about "examplemod" being removed from the hierarchy. The folder stayed named "examplemod" in Visual Studio, but was renamed on the filesystem. Refreshing the view nor reloading the project fixed the folder's name in VS, so the file was "not found" to the IDE. I had to edit the .javaproject file manually in Notepad++ to change the references to the correct folder, and then reload the project.

This happens when renaming or deleting any file in my project's "src" folder. It makes it hard to refactor as I have to edit the .javaproject file every time.