We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e13af3 commit ebcf1eaCopy full SHA for ebcf1ea
src/webview/SearchSidebar/SearchResultList/useListState.tsx
@@ -16,6 +16,7 @@ const collapseMap = new Map<string, boolean>()
16
17
onResultChange(() => {
18
collapseMap.clear()
19
+ lastActiveFile = ''
20
})
21
22
export function useToggleResult(filePath: string) {
@@ -24,6 +25,7 @@ export function useToggleResult(filePath: string) {
24
25
const toggleIsExpanded = useCallback(() => {
26
toggleResult(filePath)
27
toggle()
28
+ // jump to toggled files, only if it is at the top
29
if (isExpanded && lastActiveFile === filePath) {
30
const index = findIndex(filePath)
31
if (index) {
0 commit comments