Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Perfectly Matched Problem When Searching by Problem ID #965

Open
dabuside opened this issue Jul 14, 2024 · 1 comment
Open

Show Perfectly Matched Problem When Searching by Problem ID #965

dabuside opened this issue Jul 14, 2024 · 1 comment

Comments

@dabuside
Copy link

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

@tomoyachen
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants