question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to skip sorting QuickPick items

See original GitHub issue

Similar to https://github.com/microsoft/vscode/issues/63050, I wish to avoid the final sort on the quick pick list. I am using the quickpick as a search field, and the items field I set is already sorted by my relevance metric, so I do not want to have VS Code sort the list again . Specifically, I want an option to skip this block: https://github.com/microsoft/vscode/blob/a69d0f8b218498e22b7c3a0f76926cc6322e6106/src/vs/workbench/browser/parts/quickinput/quickInputList.ts#L518-L523)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:13
  • Comments:32 (28 by maintainers)

github_iconTop GitHub Comments

4reactions
chrmarticommented, Jun 28, 2019

We could add matchOnLabel (like we internally already did) to the API and couple that with filtering, highlighting and sorting. (Currently the sorting is only done based on the label.) That would fit nicely with the existing API while not exposing too fine-grained options that are hard to use.

3reactions
bf-softwarecommented, Aug 25, 2020

I’d just like to add that for those using TypeScript, you can access QuickPick’s new sortByLabel flag like so: (Since it’s not in the type definitions yet.)

let quickPick = vscode.window.createQuickPick();
(quickPick as any).sortByLabel = false;
Read more comments on GitHub >

github_iconTop Results From Across the Web

Add icons to QuickPick List - visual studio code - Stack Overflow
I'm currently writing an extension that lists files in a QuickPick dialogue. Is there a way to add the ...
Read more >
Top K problems - Sort, Heap, and QuickSelect - LeetCode
Fortunately, the solutions to it is quite standard, which are mainly: 1) sort; 2) using a heap; 3) Quick Select. Sorting first and...
Read more >
Quick Picks | Visual Studio Code Extension API
Quick Pick Items can be grouped into clear sections using Quick Pick Separators. These feature a divider and label to clearly show the...
Read more >
Quickselect Algorithm - GeeksforGeeks
Quickselect is a selection algorithm to find the k-th smallest element in an unordered list. It is related to the quick sort sorting...
Read more >
Excel Data Entry Time-Saving Tips and Shortcuts and Fixes
Copy to Adjacent Cells -- with options · Select the cell that contains the data to be copied · Point to the Fill...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found