Using displayName properties for sub command display names instead of name properties#2907
Using displayName properties for sub command display names instead of name properties#2907MaybeAshleyIdk wants to merge 1 commit into
displayName properties for sub command display names instead of name properties#2907Conversation
|
why are you using the displayName property in the first place? just use name |
|
Mainly just to prevent name clashing. |
plugins shouldn't have the same command name in the first place, that's bound to cause confusion considering they don't have icons |
Definitely yeah, but on the off chance that it happen, it'd be still nice to have a way to disambiguate. Plus, since |
|
then i think we should remove support for it entirely, there is no reason for the name and display name to be any different, and you should be using that's a change that can be made at a later date though, and will probably be rolled up into a different PR |
Before, the
displayNameproperties were ignored for sub commands.Fixing it so that registered sub commands actually use the specified display names instead of the regular name properties in the command picker.
I don't know if the change to
subCommandPathactually does anything, but it seems the correct thing to do.Example
Given the command object:
Before patch:

After patch:
