Draft
Conversation
Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/c73e060c-0682-4ef9-9fca-6e2dca2af861 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ujiro99/selection-command/sessions/c73e060c-0682-4ef9-9fca-6e2dca2af861 Co-authored-by: ujiro99 <677231+ujiro99@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add command edit dialog launch from Selection Command Hub
Hub外部呼び出しでCommand編集ダイアログ起動と保存時Hub同期を追加
May 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selection Command Hub から拡張機能へ既存コマンド編集を要求できる経路がなく、編集後の更新も Hub 側へ反映されませんでした。
この変更で、Hub から対象コマンドの編集ダイアログを直接起動し、保存時に同コマンドを Hub に再送できるようにしています。
Hub→Extension 外部メッセージ拡張 (
EditCommand)onMessageExternalにEditCommandアクションを追加。options_pageをeditCommand/syncHubクエリ付きで開き、編集対象と同期意図を明示的に渡すように変更。Options画面での編集ダイアログ自動起動
CommandListでlocation.searchを解釈し、editCommandに一致するコマンドを特定して編集ダイアログを自動オープン。保存時のHub更新連携
syncHub=1のときのみ、既存のshareCommandToHubを利用して更新済みコマンドを Hub に送信。関連テスト更新
EditCommandケース(正常系/型不正系)を追加。