-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Expose search.action.refreshSearchResults #49248
Comments
I think 'refresh' isn't what you want exactly because it's only enabled when there are already results in the view. You want to be able to start a search, which doesn't have a command behind it currently. I don't really want to add commands for extensions to basically automate the vscode UI like this, it doesn't feel like something that a vscode extension should be doing. What's your scenario? |
My current code uses I might be wrong, but at the moment every extension has to implement itself how it searches through files. Given there is already some facility in VS Code to search, it seems to make sense to make use of that. Also, I foresee that future versions of VS Code may provide better search support for files provided by the |
Ok, I don't think this is a good fit for extensions.
If that's your end goal, then yes. You can follow #47058 for that exact issue. |
v1.23.0
This was initially asked in #23558.
#23558 listed refresh, collapse all and clear. In the keyboards bindings, one can access
search.action.collapseSearchResults
andsearch.action.clearSearchResults
but notsearch.action.refreshSearchResults
.I'm currently trying to write an extension that would automatically start a search with a given word. At the moment I'm able to get the search sidebar to show and to clear the current search, but I cannot execute/run the search.
The text was updated successfully, but these errors were encountered: