Prioritize exact PR numbers in checkout picker - #8886
Prioritize exact PR numbers in checkout picker#8886Alex Ross (alexr00) with Copilot wants to merge 6 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
No need to break things into separate files like this.
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
Don't add new files
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
Copilot, don't add those new files. Just modify existing files.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Alex Ross (alexr00)
left a comment
There was a problem hiding this comment.
Copilot Having just the number as the label is uglier. Is there a way to prioritize the number without changing the display?
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses an issue in the “Checkout Pull Request by Number” QuickPick where fuzzy matching could cause the wrong PR to be preselected when the typed value is an exact PR number but also appears in another PR title.
Changes:
- Introduces
findExactPullRequestNumberMatchand wires it into the checkout QuickPick to focus the exact PR-number match on value changes. - Adds a regression test covering the “digits in another PR title” scenario.
- Adds QuickPick event subscription cleanup for the new
onDidChangeValuehandler.
Show a summary per file
| File | Description |
|---|---|
src/commands.ts |
Adds exact-number matching helper and updates the checkout QuickPick to prioritize an exact PR-number match. |
src/test/extension.test.ts |
Adds a regression test for the exact-number match helper. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 3
- Review effort level: Lite
Pull request was converted to draft
The checkout picker could rank a fuzzy title match above an exact PR number, preselecting the wrong pull request.
Changes
#number titledisplay while explicitly focusing the listed pull request whose number exactly matches the input. Clear that focus when the input is no longer an exact match.