Fix swapped incoming/outgoing icons in call hierarchy view

Swap the icons so they show the current state instead of target state.
- When viewing incoming calls: show incoming icon (with "Show Outgoing Calls" title)
- When viewing outgoing calls: show outgoing icon (with "Show Incoming Calls" title)

This matches VS Code's convention where toggle buttons display the current
state icon with the action title being the target state.

Fixes the issue where the icon showed the opposite of what was being displayed.

Co-authored-by: jrieken <1794099+jrieken@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-19 14:24:54 +00:00
parent 2bf1b37bd5
commit 6d8d77ee8f

View File

@@ -129,13 +129,13 @@
"command": "references-view.showOutgoingCalls", "command": "references-view.showOutgoingCalls",
"title": "%cmd.references-view.showOutgoingCalls%", "title": "%cmd.references-view.showOutgoingCalls%",
"category": "Calls", "category": "Calls",
"icon": "$(call-outgoing)" "icon": "$(call-incoming)"
}, },
{ {
"command": "references-view.showIncomingCalls", "command": "references-view.showIncomingCalls",
"title": "%cmd.references-view.showIncomingCalls%", "title": "%cmd.references-view.showIncomingCalls%",
"category": "Calls", "category": "Calls",
"icon": "$(call-incoming)" "icon": "$(call-outgoing)"
}, },
{ {
"command": "references-view.removeCallItem", "command": "references-view.removeCallItem",