Skip to content

Type Alias: MenuSurface

ts
type MenuSurface = 
  | "explorer/item"
  | "editor/tab"
  | "terminal/tab"
  | "terminal/link"
  | "workspace";

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

The context menus of built-in surfaces that a ContextMenuContribution can target — distinct from the menubar MenuId, because context items receive a target argument (which file, which editor, which workspace) that menubar items never have.

Each surface's target type is declared by MenuContext.