@@ -82,12 +82,6 @@ function! fern#internal#node#children(node, provider, token, ...) abort
82
82
\} , a: 0 ? a: 1 : {})
83
83
if a: node .status is # s: STATUS_NONE
84
84
return s: Promise .reject (' leaf node does not have children' )
85
- elseif has_key (a: node .concealed, ' __cache_children' ) && options .cache
86
- " Return a fresh copy of cached children so that status won't be cached
87
- return s: AsyncLambda .map (
88
- \ a: node .concealed.__cache_children,
89
- \ { v - > deepcopy (v ) },
90
- \)
91
85
elseif has_key (a: node .concealed, ' __promise_children' )
92
86
return a: node .concealed.__promise_children
93
87
endif
@@ -102,7 +96,6 @@ function! fern#internal#node#children(node, provider, token, ...) abort
102
96
\ ' __owner' : a: node ,
103
97
\ })
104
98
\ }))
105
- \. then ({ v - > s: Lambda .pass (v , s: Lambda .let (a: node .concealed, ' __cache_children' , v )) })
106
99
\. finally ({ - > Done () })
107
100
\. finally ({ - > Profile () })
108
101
let a: node .concealed.__promise_children = p
@@ -199,7 +192,6 @@ function! fern#internal#node#collapse(node, nodes, provider, comparator, token)
199
192
\. finally ({ - > Done () })
200
193
\. finally ({ - > Profile () })
201
194
call p .then ({ - > s: Lambda .let (a: node , ' status' , s: STATUS_COLLAPSED ) })
202
- \. then ({ - > s: Lambda .unlet (a: node .concealed, ' __cache_children' ) })
203
195
let a: node .concealed.__promise_collapse = p
204
196
\. finally ({ - > s: Lambda .unlet (a: node .concealed, ' __promise_collapse' ) })
205
197
return p
0 commit comments