Allow commands with user-defined names to be hidden from cmdpal #9995

Open
opened 2026-01-31 02:09:38 +00:00 by claunia · 0 comments
Owner

Originally created by @leonMSFT on GitHub (Aug 4, 2020).

Currently we can return an empty string from GenerateName() in order to hide a command from the cmdpal, but if a user decides to explicitly give their command a name, it'll show up because it doesn't hit GenerateName(). There's no smooth way to hide the command in this case. This is really just to appease the ATS's (#6732) very minor desire to hide anchor mode from the cmdpal because the use case doesn't really make much sense.

Originally created by @leonMSFT on GitHub (Aug 4, 2020). Currently we can return an empty string from `GenerateName()` in order to hide a command from the cmdpal, but if a user decides to explicitly give their command a name, it'll show up because it doesn't hit `GenerateName()`. There's no smooth way to hide the command in this case. This is really just to appease the ATS's (#6732) _very minor_ desire to hide `anchor` mode from the cmdpal because the use case doesn't really make much sense.
claunia added the Issue-TaskProduct-TerminalArea-UserInterface labels 2026-01-31 02:09:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9995