feat(outline-pane): suport registry in workspace level

This commit is contained in:
liujuping 2023-11-23 11:23:34 +08:00 committed by 林熠
parent ad044f49ed
commit 029fd1ce67

View File

@ -40,8 +40,6 @@ export class TreeMaster {
const { workspace } = this.pluginContext;
this.initEvent();
if (pluginContext.registerLevel === IPublicEnumPluginRegisterLevel.Workspace) {
this.setPluginContext(workspace.window?.currentEditorView);
workspace.onWindowRendererReady(() => {
this.setPluginContext(workspace.window?.currentEditorView);
let dispose: IPublicTypeDisposable | undefined;
const windowViewTypeChangeEvent = () => {
@ -57,7 +55,6 @@ export class TreeMaster {
this.setPluginContext(workspace.window?.currentEditorView);
dispose && dispose();
});
});
}
}