Albince Paliakkara
633bef2e69
fix(vcs): show the focused view's diff for Show Diff and Show Diff in New Window ( #6752 )
...
With a key bound to Show Diff in New Window, the Compare tool window opened an empty diff: the diff actions could not ask the focused view what it shows, so they diffed the Project view's or the editor's file against HEAD, and the shelf, stash, patch and review trees only claimed Show Diff's own key. Views now register a diff source on their element (diffSource.ts) and both diff actions ask the one around the focused element first, whatever runs them (shortcut, menu, Find Action). Covered: Compare trees (tool window, comparison window, Push, rebase plan), shelf checklist and panel, Stash view and Unstash dialog, Apply Patch list, Local Changes review dialog and the Git Log's changed files. A guessed file without local changes now shows "No local changes in X" instead of an empty diff.
Fixes #6751
Co-authored-by: albince-mi <[email protected] >
2026-11-28 23:10:17 +08:00
..
2026-11-28 23:10:17 +08:00
2026-11-23 15:44:15 +08:00
2026-11-28 23:10:17 +08:00
2026-11-28 23:10:17 +08:00
2026-11-22 21:57:30 +08:00
2026-11-26 05:43:27 +08:00
2026-11-22 21:57:30 +08:00
2026-11-23 09:13:45 +08:00
2026-11-22 21:57:30 +08:00
2026-11-26 13:06:33 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 01:23:52 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 05:55:03 +08:00
2026-11-23 09:15:44 +08:00
2026-11-24 08:06:54 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 20:23:57 +08:00
2026-11-25 04:57:31 +08:00
2026-11-28 20:23:57 +08:00
2026-11-28 20:23:57 +08:00
2026-11-28 20:23:57 +08:00
2026-11-25 03:27:12 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-26 20:43:02 +08:00
2026-11-28 20:23:57 +08:00
2026-11-21 11:57:07 +08:00
2026-11-22 21:57:30 +08:00
2026-11-24 08:06:54 +08:00
2026-11-25 16:29:24 +08:00
2026-11-27 16:44:28 +08:00
2026-11-25 16:29:24 +08:00
2026-11-27 08:59:33 +08:00
2026-11-27 08:59:33 +08:00
2026-11-27 08:59:33 +08:00
2026-11-26 20:43:02 +08:00
2026-11-26 17:24:35 +08:00
2026-11-27 10:53:31 +08:00
2026-11-27 19:19:02 +08:00
2026-11-25 03:27:12 +08:00
2026-11-23 09:13:37 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 01:23:52 +08:00
2026-11-24 08:06:54 +08:00
2026-11-23 09:13:30 +08:00
2026-11-23 09:13:30 +08:00
2026-11-25 03:27:12 +08:00
2026-11-22 21:57:30 +08:00
2026-11-26 21:55:41 +08:00
2026-11-18 23:14:15 +08:00
2026-11-25 03:27:12 +08:00
2026-11-24 08:06:54 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 01:23:52 +08:00
2026-11-25 03:27:12 +08:00
2026-11-26 22:30:10 +08:00
2026-11-22 21:57:30 +08:00
2026-11-25 03:27:12 +08:00
2026-11-23 14:27:36 +08:00
2026-11-23 15:45:02 +08:00
2026-11-28 07:01:37 +08:00
2026-11-26 19:32:33 +08:00
2026-11-27 15:12:02 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 23:10:17 +08:00
2026-11-28 06:59:28 +08:00
2026-11-22 00:36:46 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-26 01:38:22 +08:00
2026-11-26 01:38:22 +08:00
2026-11-23 23:22:47 +08:00
2026-11-22 21:57:30 +08:00
2026-11-15 18:42:16 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-26 20:43:02 +08:00
2026-11-28 20:20:09 +08:00
2026-11-26 05:43:27 +08:00
2026-11-27 02:34:33 +08:00
2026-11-15 22:18:58 +08:00
2026-11-23 15:44:15 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 20:20:28 +08:00
2026-11-28 23:10:17 +08:00
2026-11-28 08:25:26 +08:00
2026-11-28 06:59:28 +08:00
2026-11-22 00:17:22 +08:00
2026-11-22 00:17:22 +08:00
2026-11-18 09:44:01 +08:00
2026-11-22 21:57:30 +08:00
2026-11-21 07:59:59 +08:00
2026-11-21 07:59:59 +08:00
2026-11-22 21:57:30 +08:00
2026-11-27 02:34:33 +08:00
2026-11-22 21:57:30 +08:00
2026-11-25 11:22:22 +08:00
2026-11-24 08:06:54 +08:00
2026-11-25 07:07:16 +08:00
2026-11-22 21:57:30 +08:00
2026-11-20 15:39:03 +08:00
2026-11-15 02:00:12 +08:00
2026-11-25 14:27:48 +08:00
2026-11-28 02:01:47 +08:00
2026-11-25 13:52:25 +08:00
2026-11-26 20:43:02 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-27 02:34:33 +08:00
2026-11-27 02:34:33 +08:00
2026-11-27 02:34:33 +08:00
2026-11-27 02:34:33 +08:00
2026-11-27 02:34:33 +08:00
2026-11-27 02:34:33 +08:00
2026-11-25 03:27:12 +08:00
2026-11-22 21:57:30 +08:00
2026-11-27 08:59:33 +08:00
2026-11-26 12:51:14 +08:00
2026-11-24 08:06:54 +08:00
2026-11-23 09:12:22 +08:00
2026-11-28 23:10:17 +08:00
2026-11-20 19:40:33 +08:00
2026-11-25 03:27:12 +08:00
2026-11-28 23:10:17 +08:00
2026-11-22 21:57:30 +08:00
2026-11-24 13:52:30 +08:00
2026-11-28 20:23:57 +08:00
2026-11-23 20:43:44 +08:00
2026-11-24 08:06:54 +08:00
2026-11-26 18:37:28 +08:00
2026-11-23 10:32:53 +08:00
2026-11-23 10:32:53 +08:00
2026-11-27 14:27:05 +08:00
2026-11-25 03:27:12 +08:00
2026-11-17 13:13:27 +08:00
2026-11-25 16:18:31 +08:00
2026-11-25 16:18:31 +08:00
2026-11-26 20:43:02 +08:00
2026-11-26 20:43:02 +08:00
2026-11-22 21:57:30 +08:00
2026-11-24 08:06:54 +08:00
2026-11-22 19:27:01 +08:00
2026-11-25 16:18:31 +08:00
2026-11-20 05:25:12 +08:00
2026-11-27 10:34:30 +08:00
2026-11-24 21:50:20 +08:00
2026-11-25 13:52:25 +08:00
2026-11-23 22:32:58 +08:00
2026-11-20 23:43:20 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 23:10:17 +08:00
2026-11-27 14:40:00 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 23:10:17 +08:00
2026-11-23 13:27:58 +08:00
2026-11-23 13:27:58 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 20:32:23 +08:00
2026-11-22 21:57:30 +08:00
2026-11-20 05:07:24 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 20:20:46 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-21 09:30:49 +08:00
2026-11-28 20:20:46 +08:00
2026-11-19 22:44:54 +08:00
2026-11-28 20:23:57 +08:00
2026-11-22 21:57:30 +08:00
2026-11-21 09:53:24 +08:00
2026-11-26 20:43:02 +08:00
2026-11-23 23:22:47 +08:00
2026-11-23 19:24:50 +08:00
2026-11-17 00:03:26 +08:00
2026-11-20 19:40:42 +08:00
2026-11-25 03:27:12 +08:00
2026-11-20 19:40:33 +08:00
2026-11-26 16:35:31 +08:00
2026-11-27 01:58:07 +08:00
2026-11-22 19:27:01 +08:00
2026-11-22 21:57:30 +08:00
2026-11-20 09:21:25 +08:00
2026-11-28 23:10:17 +08:00
2026-11-25 03:27:12 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-27 19:19:02 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-28 23:10:17 +08:00
2026-11-28 23:10:17 +08:00
2026-11-25 07:07:16 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-25 04:57:31 +08:00
2026-11-21 09:18:46 +08:00
2026-11-22 21:57:30 +08:00
2026-11-23 09:14:53 +08:00
2026-11-24 08:06:54 +08:00
2026-11-22 21:57:30 +08:00
2026-11-23 15:44:15 +08:00
2026-11-21 10:48:32 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-22 21:57:30 +08:00
2026-11-25 03:27:12 +08:00