Closed Arthurm1 closed 11 months ago
Display name in Metals is shown as a user-friendly way to navigate build targets. There is a project explorer which, after this PR, displays as...
There is also a "Doctor" page to show what Metals thinks about the project setup...
And finally you can get info on each build target...
I can also see a case where someone has written a command line BSP client and a user might want to manage the build through it. In that case they could write something simple like bsp compile model model-test
. Without these display names, they'd have to type the entire build target uri which is long and not user-friendly.
I've made the changes - should be good to merge now
This PR populates display name in
BuildTarget
which is currently null.Creating unique names is a bit fiddly as BSP considers each source set a separate target and unique whereas Gradle considers each project unique. I've added a test for this.