Commit e32a469
Navigate to test source file when clicking CTest in Test Explorer (#4761)
* Initial plan
* feat: navigate to test source file when clicking test in Test Explorer
Match test executables to CMake target source files via the code model,
so clicking a CTest unit test in the Test Explorer navigates to the
actual test source file instead of CMakeLists.txt.
Priority order for test location resolution:
1. DEF_SOURCE_LINE property (user-specified)
2. Code model source file matching (new - matches executable to target)
3. Backtrace fallback (CMakeLists.txt location)
Fixes #4449
Co-authored-by: snehara99 <[email protected]>
* Remove PR citation from changelog entry
Co-authored-by: snehara99 <[email protected]>
* Fix null safety: guard test.command access in refreshTestsInTestExplorer
Co-authored-by: snehara99 <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: snehara99 <[email protected]>1 parent c7ce061 commit e32a469
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
781 | 815 | | |
782 | 816 | | |
783 | 817 | | |
| |||
848 | 882 | | |
849 | 883 | | |
850 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
851 | 888 | | |
852 | 889 | | |
853 | 890 | | |
| |||
868 | 905 | | |
869 | 906 | | |
870 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
871 | 918 | | |
872 | 919 | | |
873 | 920 | | |
| |||
0 commit comments