Skip to content

Interface: EditorViewInfo

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

One editor view that can render a given file — its id, user-facing label, and whether it is the view the host would pick by default. Returned by EditorService.editorsFor; used to build "Open With" menus and the breadcrumb view-switcher.

Properties

id

ts
id: string;

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

The editor's id (an Editor.id); pass back as viewType.


label

ts
label: string;

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

Human-facing label (falls back to EditorViewInfo.id).


isDefault

ts
isDefault: boolean;

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

True for the editor the host resolves by default (highest priority).