Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

  • TextEditor

Index

Constructors

Properties

_languageAutoDetected: boolean = true
autoSizing: boolean
contextKeyService: ContextKeyService
documents: Set<MonacoEditorModel> = ...
editor: IStandaloneCodeEditor
maxHeight: number
minHeight: number
node: HTMLElement
onCursorPositionChangedEmitter: Emitter<Position> = ...
onDidResize: Event<null | Dimension> = ...
onDocumentContentChangedEmitter: Emitter<TextDocumentChangeEvent> = ...
onEncodingChanged: Event<string> = ...
onFocusChangedEmitter: Emitter<boolean> = ...
onLanguageChanged: Event<string> = ...
onLanguageChangedEmitter: Emitter<string> = ...
onMouseDownEmitter: Emitter<EditorMouseEvent> = ...
onResizeEmitter: Emitter<null | Dimension> = ...
onScrollChangedEmitter: Emitter<void> = ...
onSelectionChangedEmitter: Emitter<Range> = ...
toDispose: DisposableCollection = ...
uri: URI

Accessors

  • get cursor(): Position
  • set cursor(cursor: Position): void
  • get isReadonly(): boolean
  • get languageAutoDetected(): boolean
  • get onCursorPositionChanged(): Event<Position>
  • get onDispose(): Event<void>
  • get onDocumentContentChanged(): Event<TextDocumentChangeEvent>
  • get onFocusChanged(): Event<boolean>
  • get onMouseDown(): Event<EditorMouseEvent>
  • get onScrollChanged(): Event<void>
  • get onSelectionChanged(): Event<Range>
  • get selection(): Range
  • set selection(selection: Range): void

Methods

  • addHandlers(codeEditor: IStandaloneCodeEditor): void
  • autoresize(): void
  • blur(): void
  • computeLayoutSize(hostNode: HTMLElement, dimension: null | IDimension): IDimension
  • create(options?: IStandaloneEditorConstructionOptions | IStandaloneEditorConstructionOptions, override?: EditorServiceOverrides): Disposable
  • createMoveToUri(resourceUri: URI): URI
  • deltaDecorations(params: DeltaDecorationParams): string[]
  • detectLanguage(): Promise<void>
  • dispose(): void
  • executeEdits(edits: TextEdit[]): boolean
  • fireLanguageChanged(languageId: string): void
  • focus(): void
  • fromMarkdownToString(maybeMarkdown?: null | string | IMarkdownString | IMarkdownString[]): undefined | string
  • fromStringToMarkdownString(hoverMessage?: string | IMarkdownString | IMarkdownString[]): undefined | IMarkdownString | IMarkdownString[]
  • getControl(): IStandaloneCodeEditor
  • getEncoding(): string
  • getHeight(hostNode: HTMLElement, boxSizing: IBoxSizing): number
  • getLinesDecorations(startLineNumber: number, endLineNumber: number): (EditorDecoration & Readonly<{ id: string }>)[]
  • getResourceUri(): URI
  • getVisibleColumn(position: Position): number
  • getVisibleRanges(): Range[]
  • getWidth(hostNode: HTMLElement, boxSizing: IBoxSizing): number
  • isActionSupported(id: string): boolean
  • isFindWidgetVisible(): boolean
  • isFocused(__namedParameters?: { strict: boolean }): boolean
  • isRenameInputVisible(): boolean
  • isSuggestWidgetVisible(): boolean
  • mapModelContentChange(change: IModelContentChange): TextDocumentContentChangeDelta
  • refresh(): void
  • replaceText(params: ReplaceTextParams): Promise<boolean>
  • resize(dimension: null | Dimension): void
  • resizeToFit(): void
  • restoreViewState(state: ICodeEditorViewState): void
  • revealPosition(raw: Position, options?: RevealPositionOptions): void
  • revealRange(raw: Range, options?: RevealRangeOptions): void
  • runAction(id: string): Promise<void>
  • setEncoding(encoding: string, mode: EncodingMode): Promise<void>
  • setLanguage(languageId: string): void
  • setSize(dimension: Dimension): void
  • storeViewState(): object
  • toDeltaDecorations(params: DeltaDecorationParams): IModelDeltaDecoration[]
  • toEditorDecoration(decoration: IModelDecoration): EditorDecoration & Readonly<{ id: string }>
  • trigger(source: string, handlerId: string, payload: any): void