You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add recently used branches tracking for PR creation (#8300)
* Initial plan
* Initial plan for supporting more branches in PR creation
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add recently used branches feature for PR creation
- Added RECENTLY_USED_BRANCHES state key and RecentlyUsedBranchesState interface
- Added RECENTLY_USED_BRANCHES_COUNT setting key (default: 5, range: 0-20)
- Added setting in package.json with localization
- Implemented getRecentlyUsedBranches() and saveRecentlyUsedBranch() helper methods
- Modified branchPicks() to show recently used branches at the top with separators
- Added calls to save base branch when selected and when PR is created
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Optimize configuration reads by extracting helper method
- Extract getRecentlyUsedBranchesMaxCount() to avoid redundant config reads
- Both getRecentlyUsedBranches() and saveRecentlyUsedBranch() now use the helper
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Hard-code recently used branches limit to 10 and allow branches not in list
- Remove recentlyUsedBranchesCount setting as requested
- Hard-code limit to 10 branches instead of using configurable setting
- Allow recently used branches even if they're not in the fetched branch list
This ensures branches like 'develop' are shown even when timeout cuts off the list
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
0 commit comments