-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Allow better extension of the search UI #186776
Comments
If I understand correctly, this seems to boil down to two things. Please let me know if I'm correct in my understanding.
For the latter, I think we have #59921 tracking the TextSearchProvider, which might fit what you're looking for. |
Yea TextSearchProvider looks like a good step to solving the second point. It would be ideal if the results could at least define a proposed |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
I was trying to build out some features to extend the search results UI since it is a very natural place for the work I was doing.
In general there were two limitations I encountered 1 that has been flagged and delayed and 1 that has not.
replace
are not able to be added.Being able to add context menu actions to search can enable workflows that are more context specific to that result but possibly more intelligent. For instance being able to right click a result and look at the quick actions for that result inline.
What if we wanted to add an option for each result to process it in some way, say convert it to a functional component from a class component? If we could have a way to specify
when
a result matches some criteria show this additional action it would be awesome. Enabling the context menu would also achieve this.When triggering the command
workbench.action.findInFiles
you are allowed to pass areplace
value. This value has all the power of the UI'sreplace
field but is pretty limiting when trying to build a stronger tool here. It would be awesome if you could provide one of the following as wellPass a replacement function
This function could be executed when rendering the UI for the replacement and would allow a custom replacement to be computed from the original. This means you could have all the power of javascript to compute these replacements instead of being limited to only regex style computations.
You could load the file into an AST and make a decision for instance?
Allow re-use of the existing search UI
If you allowed instead for the extension to just provide a list of results it would keep a similar UI experience but provide
similar power.
This could be made even more powerful if you actually let extension developers leverage the search functionality in the extension as well. Something like
The text was updated successfully, but these errors were encountered: