Add executedQuery and resultClassName props to search list
Created by: tjkandala
Add props to StreamingSearchResultsList
for the VS Code extension (likely the last VS Code extension search-ui PR for initial release
-
executedQuery
: Simply the latest run query. Used to belocation.search
by default. Used to reset virtual list height/items to show on new search. -
resultClassName
: Allows consumer to style search result container
Test plan
On Sourcegraph web:
resultClassName
(search result rendering):
- Run a search
- Observe that search result rendering has not changed
After | sourcegraph.com |
---|---|
executedQuery
: (scroll visibility state reset):
- Run a search
- Scroll to the bottom of the search results list and see the next set of search results are now shown
- Run a new search
- Observe that the scroll height of the search results list has decreased (only the initial count of search results are shown)