Commit 5978bda
Fix: Detect PR files in #openPullRequest when single file is open (#7892)
* Initial plan
* Initial analysis complete
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix: Detect PR files in #openPullRequest when single file is open
The OpenPullRequestTool now also detects PR-associated files when a single file with PR scheme is open, not just when a diff is open. This allows users to ask about #openPullRequest when they have newly added files open in a PR.
Added support for:
- TabInputText with Schemes.Pr (PR files from GitHub)
- TabInputText with Schemes.Review (checked out PR files)
This fixes the issue where PRs with only newly created files were not detected.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Revert proposed changes
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent 2b6142d commit 5978bda
2 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
46 | 62 | | |
47 | 63 | | |
48 | 64 | | |
| |||
0 commit comments