Skip to content

Commit 2d98f1c

Browse files
AndyJinSSliujuping
authored andcommitted
fix: the action of history would not update outline tree
1 parent 19935cf commit 2d98f1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/plugin-outline-pane/src/controllers

packages/plugin-outline-pane/src/controllers/tree.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export class Tree {
3030
treeNode?.notifyExpandableChanged();
3131
});
3232

33+
doc?.history.onChangeCursor(() => {
34+
this.root?.notifyExpandableChanged();
35+
});
36+
3337
doc?.onChangeNodeProp((info: IPublicTypePropChangeOptions) => {
3438
const { node, key } = info;
3539
if (key === '___title___') {

0 commit comments

Comments
 (0)