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

This commit is contained in:
liujuping 2023-11-23 11:23:34 +08:00 committed by JackLian
parent 0222f31202
commit 93fb94ac53

View File

@ -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();
}); });
});
} }
} }