microsoft / vscode-maven

VSCode extension "Maven for Java"
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven
Other
182 stars 89 forks source link

Request to add a setting to display the artifactId in maven explorer #871

Open qzi opened 2 years ago

qzi commented 2 years ago

Suggestion

Request to add a setting to display the project name as <artifactId></artifactId> in maven explorer, although it display the <name></name>

Use Cases

In the Java extension pack from Red Hat, they use artifactId to distinguish project in multiple-root workspace. we have to change the artifactId in multiple project in workspace. But in the mean time, maven explorer display the <name> only, if the maven extension can set to display the artifactId, too. it should be perfect that we need not change the <name>but < artifactId>.

Examples

You can see that if we can display the artifactid, we needn't too wide to distinguish different projects and order it better

image
Eskibear commented 2 years ago

https://github.com/microsoft/vscode-maven/blob/09cb9349da2a6beeca86bb2ce0b45497b0f235e7/package.json#L733-L744

Use setting maven.explorer.projectName. We should update README accordingly.

qzi commented 2 years ago

@Eskibear

Thanks for your support, another question is that how can I set the format in light grey following

image
Eskibear commented 2 years ago

No you can't for the moment.

Eskibear commented 2 years ago

another question is that how can I set the format in light grey following

So what do you want it to show if we support customization?

qzi commented 2 years ago

@Eskibear Can we identify the project using folder name + artifactID and also give us a option to display the folder name?

Currently this plugin identify multiple root projects using artifactID. not robust enough

image
github-actions[bot] commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.