Index

Constructor methods

Properties

Methods

Constructor methods

constructor(syntaxTree: SyntaxTree, snapshot: ITextSnapshot, rulesProvider: RulesProvider, editorOptions: EditorOptions): FormattingManager

Parameters

Returns

FormattingManager

Properties

private options: any

private rulesProvider: any

private snapshot: any

private syntaxTree: any

Methods

public formatDocument(minChar: number, limChar: number): TextEdit[]

Parameters

  • minChar: number
  • limChar: number

Returns

TextEdit[]

public formatOnClosingCurlyBrace(caretPosition: number): TextEdit[]

Parameters

  • caretPosition: number

Returns

TextEdit[]

public formatOnEnter(caretPosition: number): TextEdit[]

Parameters

  • caretPosition: number

Returns

TextEdit[]

public formatOnPaste(minChar: number, limChar: number): TextEdit[]

Parameters

  • minChar: number
  • limChar: number

Returns

TextEdit[]

public formatOnSemicolon(caretPosition: number): TextEdit[]

Parameters

  • caretPosition: number

Returns

TextEdit[]

public formatSelection(minChar: number, limChar: number): TextEdit[]

Parameters

  • minChar: number
  • limChar: number

Returns

TextEdit[]

private formatSpan(span: any, formattingRequestKind: any): any

Parameters

  • span: any
  • formattingRequestKind: any

Returns

any