Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MonacoEditorService

Hierarchy

  • CodeEditorServiceImpl
    • MonacoEditorService

Index

Constructors

constructor

Properties

Protected Readonly editors

editors: EditorManager

Protected Readonly m2p

Protected Readonly openerService

openerService: OpenerService

Protected Readonly preferencesService

preferencesService: PreferenceService

registerDecorationType

registerDecorationType: (key: string, options: IDecorationRenderOptions, parentTypeKey?: string, editor?: ICodeEditor) => void

Type declaration

    • (key: string, options: IDecorationRenderOptions, parentTypeKey?: string, editor?: ICodeEditor): void
    • Parameters

      • key: string
      • options: IDecorationRenderOptions
      • Optional parentTypeKey: string
      • Optional editor: ICodeEditor

      Returns void

removeDecorationType

removeDecorationType: (key: string) => void

Type declaration

    • (key: string): void
    • Parameters

      • key: string

      Returns void

resolveDecorationOptions

resolveDecorationOptions: (typeKey: string, writable: boolean) => IModelDecorationOptions

Type declaration

    • (typeKey: string, writable: boolean): IModelDecorationOptions
    • Parameters

      • typeKey: string
      • writable: boolean

      Returns IModelDecorationOptions

Protected Readonly shell

shell: ApplicationShell

Static Readonly ENABLE_PREVIEW_PREFERENCE

ENABLE_PREVIEW_PREFERENCE: string = 'editor.enablePreview'

Methods

Protected createEditorOpenerOptions

  • createEditorOpenerOptions(input: IResourceEditorInput, source?: ICodeEditor, sideBySide?: boolean): EditorOpenerOptions

Protected findEditorWidgetByUri

  • findEditorWidgetByUri(widget: undefined | object, uriAsString: string): Promise<undefined | EditorWidget>

getActiveCodeEditor

  • getActiveCodeEditor(): undefined | IStandaloneCodeEditor

Protected getEditorOpenMode

  • getEditorOpenMode(input: IResourceEditorInput): WidgetOpenMode

getFocusedCodeEditor

  • getFocusedCodeEditor(): undefined | ICodeEditor
  • It respects inline and emebedded editors in comparison to getActiveCodeEditor which only respect standalone and diff modified editors.

    Returns undefined | ICodeEditor

Protected getWidgetOptions

  • getWidgetOptions(source?: ICodeEditor, sideBySide?: boolean): undefined | WidgetOptions

openCodeEditor

  • openCodeEditor(input: IResourceEditorInput, source?: ICodeEditor, sideBySide?: boolean): Promise<undefined | CommonCodeEditor>