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 custom QuickPick highlighting

See original GitHub issue

It would be nice to have a bit more control over highlighting in QuickPick. I’m using QuickPick as a search field using regex and the existing fuzzy matching doesn’t make sense in this context. I’d like to be able to provide my own highlights for the detail field and avoid highlighting elsewhere, although for completion I think it makes sense to allow custom highlighting on all three fields.

The API could be similar to the proposed highlighted TreeItemLabel in #61482 for backward compatibility. A more general HighlightedString could be a good fit across the board. The implementation can then skip the fuzzy matching if the label type is HighlightedString and apply the highlights in there.

I feel that this would complement #77297 nicely and make for a more versatile QuickPick API.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:26 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
rmanthorpecommented, Nov 2, 2020

Great so back to my original question:

@chrmarti would you consider a PR for this if I implemented it?

1reaction
chrmarticommented, Nov 2, 2020

@kbysiec No. It is in our list of feature requests for the QuickPick API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Chart Quick Pick Button - Patterson Support
Go to File | Preferences and click on the Quick Picks tab. ... Click on the Unassigned button, (or the existing hyperlink) and...
Read more >
external tools - Add a custom command in Visual Studio Code ...
This extension can run it from custom Quick Pick (like command palette, but shows only your items). Command id is commands.openAsQuickPick ...
Read more >
Set the activation time for QuickPick - Intergraph Smart 3D - Help
Click Tools > Options to display the Options Dialog Box. Click the General tab. Select the number of seconds that should lapse before...
Read more >
What I Learned by Building My Own VS Code Extension
What an extension can do ; Quick Pick, Multi-select option selector menu ; Input Box, Text box for the user to input values...
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