Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
TypeScript
Services
Formatting
FormattingManager
Class FormattingManager
Index
Constructor methods
constructor
Properties
options
rulesProvider
snapshot
syntaxTree
Methods
formatDocument
formatOnClosingCurlyBrace
formatOnEnter
formatOnPaste
formatOnSemicolon
formatSelection
formatSpan
Constructor methods
constructor
(
syntaxTree
:
SyntaxTree
, snapshot
:
ITextSnapshot
, rulesProvider
:
RulesProvider
, editorOptions
:
EditorOptions
)
:
FormattingManager
Parameters
syntaxTree:
SyntaxTree
snapshot:
ITextSnapshot
rulesProvider:
RulesProvider
editorOptions:
EditorOptions
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
Globals
TypeScript
TypeScript.ASTHelpers
TypeScript.BitMatrix
TypeScript.BitVector
TypeScript.Collections
TypeScript.CompilerDiagnostics
TypeScript.DeclarationCreator
TypeScript.Indentation
TypeScript.IntegerUtilities
TypeScript.LineMap1
TypeScript.Parser
TypeScript.PullHelpers
TypeScript.PullInstantiationHelpers
TypeScript.ScriptSnapshot
TypeScript.Services
TypeScript.Services.Breakpoints
TypeScript.Services.Formatting
TypeScript.Services.Formatting.Shared
TypeScript.SimpleText
TypeScript.Syntax
TypeScript.SyntaxFacts
TypeScript.TextFactory
TypeScript.TextUtilities
typescript-services
FormattingRequestKind
RuleAction
RuleFlags
RulesPosition
ITextSnapshot
ITextSnapshotLine
Formatter
FormattingContext
FormattingManager
constructor
options
rulesProvider
snapshot
syntaxTree
formatDocument
formatOnClosingCurlyBrace
formatOnEnter
formatOnPaste
formatOnSemicolon
formatSelection
formatSpan
IndentationNodeContext
IndentationNodeContextPool
IndentationTrackingWalker
MultipleTokenIndenter
Rule
RuleDescriptor
RuleOperation
RuleOperationContext
Rules
RulesBucket
RulesBucketConstructionState
RulesMap
RulesProvider
SingleTokenIndenter
SnapshotPoint
TextEditInfo
TextSnapshot
TextSnapshotLine
TokenSpan