vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

Show Perfectly Matched Problem When Searching by Problem ID

Open dabuside opened this issue 1 year ago • 1 comments

🚀 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.

search Currently, the user needs to type 21. to get the exact problem in the result panel.

Motivation

  1. When the user's input is a number, display the exact match first, followed by fuzzy match results.
  2. When the user's input is not a number, keep the current behavior.

Contribution

I'd like to submit a PR.

dabuside avatar Jul 14 '24 10:07 dabuside

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.

tomoyachen avatar Jul 26 '24 04:07 tomoyachen