Add option to skip sorting QuickPick items
See original GitHub issueSimilar 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:
- Created 4 years ago
- Reactions:13
- Comments:32 (28 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.)