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

Support for updating hierarchical project structure from the parent pom project in project explorer

Open gayanper opened this issue 1 year ago • 3 comments

Today when updating the project, the UI only provide option for java projects. To update a project hierarchy the user needs to update each individual java project. Adding the support in UI to trigger this update from the parent pom project will be really nice feature to have in vscode similar to Eclipse.

Environment
  • Operating System: All
  • JDK version: Any
  • Visual Studio Code version: 1.7.0.insider
  • Java extension version: 1.10
Steps To Reproduce
  1. Open a maven project which contain a parent pom
  2. Right click on the parent pom project in the Java Projects view.
Current Result

No menu to update all projects

Expected Result

Menu item to update all projects

Additional Informations

gayanper avatar Jul 25 '22 11:07 gayanper

For project selection, you can trigger the command Java: Reload Project

jdneo avatar Jul 26 '22 02:07 jdneo

I did, But it only works if the selected project is a java project, or a maven project with non-pom packaging type. What i expect is if we have a project with pom type which has several jar type sub modules. Invoking reload project command or have a Update project menu option to update the pom type and its sub modules.

gayanper avatar Jul 26 '22 11:07 gayanper

I see.

By the way, you can also set java.configuration.updateBuildConfiguration to automatic, so that you don't need to always manually trigger the reload project command.


Update:

The follow up action could be: show all projects in the workspace, instead of only displaying the Java projects

jdneo avatar Jul 27 '22 01:07 jdneo