vscode-leetcode
vscode-leetcode copied to clipboard
Show Perfectly Matched Problem When Searching by Problem ID
🚀 Feature Proposal
When a user types the problem ID number "21" in the search bar, the result panel doesn't show the exact problem ID 21 on the first page.
This behavior is a bit strange.
The system should display the perfectly matched problem when searching by problem ID.
Currently, the user needs to type
21. to get the exact problem in the result panel.
Motivation
- When the user's input is a number, display the exact match first, followed by fuzzy match results.
- When the user's input is not a number, keep the current behavior.
Contribution
I'd like to submit a PR.
The search component is provided by vscode.window.showQuickPick(), so this is not a priority for optimization. You can type "21." to match the problem id exactly.