Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PreviewContribution

Hierarchy

Implements

  • CommandContribution
  • MenuContribution
  • FrontendApplicationContribution
  • TabBarToolbarContribution

Index

Constructors

  • Returns PreviewContribution

Properties

editorManager: EditorManager
id: "code-editor-preview" = PreviewUri.id
label: string = ...
preferences: PreviewPreferences
previewHandlerProvider: PreviewHandlerProvider
scrollSyncLockOn: undefined | "preview" | "editor" = undefined
scrollSyncLockTimeout: undefined | number
synchronizedUris: Set<string> = ...

Accessors

  • get openByDefault(): boolean

Methods

  • canHandle(uri: URI): number
  • canHandleEditorUri(widget?: Widget): boolean
  • getCurrentEditor(widget?: Widget): undefined | EditorWidget
  • getCurrentEditorUri(widget?: Widget): undefined | URI
  • lockScrollSync(on: "preview" | "editor", delay?: number): Promise<void>
  • onStart(): void
  • openForEditor(widget?: Widget): Promise<void>
  • registerCommands(registry: CommandRegistry): void
  • registerEditorAndPreviewSync(source: PreviewWidget | EditorWidget): Promise<void>
  • registerMenus(menus: MenuModelRegistry): void
  • registerToolbarItems(registry: TabBarToolbarRegistry): void
  • revealSourceLineInPreview(previewWidget: PreviewWidget, position: Position): void
  • serializeUri(uri: URI): string
  • synchronizeScrollToEditor(previewWidget: PreviewWidget, editor: TextEditor): Disposable