File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,9 @@ export class OutlineView implements WebviewViewProvider {
216216 // 1. remove all nodes in the viewport
217217 for ( const node of this . inView ) {
218218 node . inView = false ;
219- node . expand = false ;
219+ if ( config . expand ( ) !== 'manual' ) {
220+ node . expand = false ;
221+ }
220222 }
221223
222224 // 2. add the nodes in the viewport
@@ -263,7 +265,7 @@ export class OutlineView implements WebviewViewProvider {
263265 property : 'inview' ,
264266 value : node . inView ,
265267 } as UpdateOp ) ;
266- if ( this . pinStatus === PinStatus . unpinned ) {
268+ if ( this . pinStatus === PinStatus . unpinned && config . expand ( ) !== 'manual' ) {
267269 Ops . push ( {
268270 type : 'update' ,
269271 selector : node . selector . join ( ' >.outline-children> ' ) ,
You can’t perform that action at this time.
0 commit comments