Skip to content

Commit

Permalink
fix: the action of history would not update outline tree
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyJinSS authored and liujuping committed Jul 12, 2023
1 parent 19935cf commit 2d98f1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/plugin-outline-pane/src/controllers/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export class Tree {
treeNode?.notifyExpandableChanged();
});

doc?.history.onChangeCursor(() => {
this.root?.notifyExpandableChanged();
});

doc?.onChangeNodeProp((info: IPublicTypePropChangeOptions) => {
const { node, key } = info;
if (key === '___title___') {
Expand Down

0 comments on commit 2d98f1c

Please sign in to comment.