File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/plugin-outline-pane/src Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ export function OutlinePaneContext(props: {
2727 } ) ;
2828 } , [ ] ) ;
2929
30+ useEffect ( ( ) => {
31+ return props . pluginContext ?. project ?. currentDocument ?. history . onChangeCursor ( ( ) => {
32+ setMasterPaneController ( new PaneController ( props . paneName || MasterPaneName , treeMaster ) ) ;
33+ } ) ;
34+ } , [ treeMaster ] ) ;
3035 return (
3136 < Pane
3237 treeMaster = { treeMaster }
@@ -77,6 +82,8 @@ export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
7782 treeTitleExtra : config . get ( 'treeTitleExtra' ) ,
7883 treeMaster,
7984 paneName : MasterPaneName ,
85+ pluginContext : ctx ,
86+ options,
8087 } ,
8188 } ) ;
8289
@@ -91,6 +98,8 @@ export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
9198 contentProps : {
9299 paneName : BackupPaneName ,
93100 treeMaster,
101+ pluginContext : ctx ,
102+ options,
94103 } ,
95104 index : 1 ,
96105 } ) ;
You can’t perform that action at this time.
0 commit comments