todo import { WorkspaceService } from "@main/workspace/workspace-service" ; import { WorkspacePlugin } from "./plugin" ; import { OutlinePlugin } from "./outline-plugin" ; import { CrossRefPlugin } from "./crossref-plugin" ; import { MetadataPlugin } from "./metadata-plugin" ; export class PluginService { constructor ( private _workspaceService ) { } todo returns getWorkspacePluginByName ( name ) ; getWorkspacePluginByName ( name ) ; getWorkspacePluginByName ( name ) ; getWorkspacePluginByName ( name ) { if ( ! this . _workspaceService . workspace ) { return null ; } return this . _workspaceService . workspace . getPluginByName ( name ) ; } }