feat(extensions): add 'delete' as an alias for /extensions uninstall#25660
feat(extensions): add 'delete' as an alias for /extensions uninstall#25660martin-hsu-test wants to merge 1 commit intogoogle-gemini:mainfrom
Conversation
Many users instinctively reach for 'delete' instead of 'uninstall' when trying to remove an extension. Add 'delete' as an altName on the uninstall slash command, mirroring the existing pattern used by reloadCommand (altNames: ['restart']). The canonical name shown in help and usage strings is unchanged. Fixes google-gemini#21328
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request improves the usability of the extension management interface by introducing a common synonym for the uninstall command. By allowing users to use 'delete' interchangeably with 'uninstall', the change reduces friction for users who rely on intuitive command naming conventions. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Summary
Many users instinctively reach for
deleteinstead ofuninstallwhen trying to remove an extension. This PR addsdeleteas an alias on the/extensions uninstallslash command, removing a small but real friction point.Fixes #21328
Implementation
Single-line change: add
altNames: ['delete']touninstallCommandinpackages/cli/src/ui/commands/extensionsCommand.ts.This mirrors the existing pattern already used in the same file by
reloadCommand:The canonical name (
uninstall) shown in help text and usage strings is unchanged, consistent with howreloadCommandexposes itsrestartalias.Behavior
After this change, all of the following are equivalent:
Tests
Added a unit test asserting the alias is exposed:
All existing extension command tests continue to pass:
tsc --noEmitandeslintboth pass with zero output.Notes
gemini extensions uninstall(non-interactive) is not changed — only the interactive slash command. This matches the issue scope.removeas an alias (common in npm/apt/brew), but stuck strictly to what the issue requested.