Skip to main content

WorkbenchApi

interface

`ctx.workbench`: open targets, apply layout plans, own status bar items, and read and change workspaces. The value and plan shapes are protocol vocabulary; this interface is the capability a mod receives on its context.

interface WorkbenchApi

Import

import { WorkbenchApi } from '@modular/sdk';

Members4

workspaces
WorkbenchWorkspacesApi
applyLayout()
(plan: WorkbenchLayoutPlan) => Promise<WorkbenchLayoutApplyResult>
createStatusBarItem()
(options: WorkbenchStatusBarItemOptions) => WorkbenchStatusBarItem
open()
(path: string) => Promise<WorkbenchEditor> | (target: WorkbenchOpenTarget) => Promise<WorkbenchOpenResult>