Class MonacoEditorProvider

Constructors

Properties

_current: undefined | MonacoEditor
diffNavigatorFactory: MonacoDiffNavigatorFactory
editorPreferences: EditorPreferences
factories: ContributionProvider<MonacoEditorFactory>
filePreferences: FileSystemPreferences
keybindingRegistry: KeybindingRegistry
openerService: OpenerService
saveParticipants: SaveParticipant[]
saveProviderContributions: ContributionProvider<SaveParticipant>
workspace: MonacoWorkspace
inlineOptions: IEditorConstructionOptions = ...

Accessors

Methods

  • Creates an instance of the standard MonacoEditor with a StandaloneCodeEditor as its Monaco delegate. Among other differences, these editors execute basic actions like typing or deletion via commands that may be overridden by extensions.

    Parameters

    Returns Promise<MonacoEditor>

    Deprecated

    Most use cases for inline editors should be served by createSimpleInline instead.

  • Creates an instance of the standard MonacoEditor with a CodeEditorWidget as its Monaco delegate. In addition to the service customizability of the StandaloneCodeEditor,This editor allows greater customization the editor contributions active in the widget. See ICodeEditorWidgetOptions.contributions.

    Parameters

    • uri: URI
    • node: HTMLElement
    • Optional options: monaco.IOptions
    • Optional widgetOptions: ICodeEditorWidgetOptions

    Returns Promise<SimpleMonacoEditor>

  • Intercept internal Monaco open calls and delegate to OpenerService.

    Parameters

    • monacoUri: string | Uri
    • Optional monacoOptions: OpenInternalOptions | OpenExternalOptions

    Returns Promise<boolean>

  • Parameters

    • preferenceName: string
    • value: any
    • prefixes: string[]
    • options: Record<string, any> = {}

    Returns {
        [name: string]: any;
    }

    • [name: string]: any