mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
feat(outline-pane): suport registry in workspace level
This commit is contained in:
parent
ad044f49ed
commit
029fd1ce67
@ -40,8 +40,6 @@ export class TreeMaster {
|
|||||||
const { workspace } = this.pluginContext;
|
const { workspace } = this.pluginContext;
|
||||||
this.initEvent();
|
this.initEvent();
|
||||||
if (pluginContext.registerLevel === IPublicEnumPluginRegisterLevel.Workspace) {
|
if (pluginContext.registerLevel === IPublicEnumPluginRegisterLevel.Workspace) {
|
||||||
this.setPluginContext(workspace.window?.currentEditorView);
|
|
||||||
workspace.onWindowRendererReady(() => {
|
|
||||||
this.setPluginContext(workspace.window?.currentEditorView);
|
this.setPluginContext(workspace.window?.currentEditorView);
|
||||||
let dispose: IPublicTypeDisposable | undefined;
|
let dispose: IPublicTypeDisposable | undefined;
|
||||||
const windowViewTypeChangeEvent = () => {
|
const windowViewTypeChangeEvent = () => {
|
||||||
@ -57,7 +55,6 @@ export class TreeMaster {
|
|||||||
this.setPluginContext(workspace.window?.currentEditorView);
|
this.setPluginContext(workspace.window?.currentEditorView);
|
||||||
dispose && dispose();
|
dispose && dispose();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user