Skip to content

Commit 3eef534

Browse files
committed
[F] bug fix
1 parent 6cbdc44 commit 3eef534

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/extension/outline.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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> '),

0 commit comments

Comments
 (0)