diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-25 11:28:51 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-25 11:28:51 -0700 |
| commit | 28abd83ad92c24a4107803bd03e510387f2014c2 (patch) | |
| tree | fc6ae7d04d59751bdbe348f320f50e08eef77ff7 /plugins/code-modernization/hooks/register.ts | |
| parent | d49ccb3844876e35262a32f145b7b717646da733 (diff) | |
code-modernization: rename the pane's rule review command to /modernize-review-pane
The pane's bare /modernize-review took the name of the plugin's own review command, so typing the short form in a pane-enabled session opened the pane's cards instead of the pop-up review. The pane's version is now /modernize-review-pane, and /modernize-review always runs the plugin command. Both still write the same review file.
Diffstat (limited to 'plugins/code-modernization/hooks/register.ts')
| -rw-r--r-- | plugins/code-modernization/hooks/register.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/code-modernization/hooks/register.ts b/plugins/code-modernization/hooks/register.ts index 9a1be96f..cbb5cbd3 100644 --- a/plugins/code-modernization/hooks/register.ts +++ b/plugins/code-modernization/hooks/register.ts @@ -731,8 +731,8 @@ export function register(on: On, raw: PluginOptions) { .catch(() => undefined), host .registerCommand({ - name: 'modernize-review', - description: 'Review business rules one card at a time: confirm, wrong, or discuss', + name: 'modernize-review-pane', + description: 'Review business rules one card at a time in the pane: confirm, wrong, or discuss', argumentHint: '[flagged|p0|all] [filter]', }) .catch(() => undefined), @@ -1023,7 +1023,7 @@ export function register(on: On, raw: PluginOptions) { return { text: opened.isPlaced ? 'Modernization pane shown' : `The pane could not be shown: ${opened.reason}` } }) - on('command.run', { command: 'modernize-review' }, async ($, e, next) => { + on('command.run', { command: 'modernize-review-pane' }, async ($, e, next) => { const host = state.host if (host === null) { |
