Skip to content

Interface: EditorProps ​

Defined in: packages/sdk/src/types.ts:254

Props passed to an Editor component. An editor renders the contents of one editor tab (a presenter for a file type — distinct from ExtensionContext.editors, which is the document model).

Properties ​

editorId ​

ts
editorId: string;

Defined in: packages/sdk/src/types.ts:256

Stable id of the editor tab this editor instance is rendering.


filePath ​

ts
filePath: string | null;

Defined in: packages/sdk/src/types.ts:258

Absolute path of the file, or null for an untitled buffer.


dockApi ​

ts
dockApi: DockPanelApi;

Defined in: packages/sdk/src/types.ts:260

Handle to the surrounding dock panel (title, close, focus).