Skip to content

Interface: ActiveEditorInfo

Defined in: packages/sdk/src/editor-service.ts:164

A point-in-time snapshot of the focused editor tab. Part of EditorsState, returned by EditorService.getState and delivered to EditorService.subscribe listeners.

Properties

editorId

ts
editorId: string;

Defined in: packages/sdk/src/editor-service.ts:166

The focused editor tab's record id — matches EditorRecord.id.


filePath

ts
filePath: string | null;

Defined in: packages/sdk/src/editor-service.ts:171

The absolute file path of the focused tab, or null for an untitled buffer.


viewId

ts
viewId: string;

Defined in: packages/sdk/src/editor-service.ts:178

The Editor.id of the presenter rendering the tab (e.g. "core.text-editor", "silo.markdown-preview"). Empty string when the presenter could not be resolved (rare: editor registered after the tab was opened).


mode

ts
mode: EditorMode;

Defined in: packages/sdk/src/editor-service.ts:180

Whether the tab is in text or diff mode.