Methods

M cleanupSemanticCache() void

Returns: { void }

M dispose() void

Returns: { void }

M findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean) ts.RenameLocation[]

Parameters:
Name Type
fileName string
position number
findInStrings boolean
findInComments boolean
Returns: { Array.<ts.RenameLocation> }

M getBraceMatchingAtPosition(fileName: string, position: number) ts.TextSpan[]

Parameters:
Name Type
fileName string
position number
Returns: { Array.<ts.TextSpan> }

M getBreakpointStatementAtPosition(fileName: string, position: number) ts.TextSpan

Parameters:
Name Type
fileName string
position number
Returns: { ts.TextSpan }

M getCompilerOptionsDiagnostics() ts.Diagnostic[]

Returns: { Array.<ts.Diagnostic> }

M getCompletionEntryDetails(fileName: string, position: number, entryName: string) ts.CompletionEntryDetails

Parameters:
Name Type
fileName string
position number
entryName string
Returns: { ts.CompletionEntryDetails }

M getCompletionsAtPosition(fileName: string, position: number) ts.CompletionInfo

Parameters:
Name Type
fileName string
position number
Returns: { ts.CompletionInfo }

M getDefinitionAtPosition(fileName: string, position: number) ts.DefinitionInfo[]

Parameters:
Name Type
fileName string
position number
Returns: { Array.<ts.DefinitionInfo> }

M getEmitOutput(fileName: string) ts.EmitOutput

Parameters:
Name Type
fileName string
Returns: { ts.EmitOutput }

M getFormattingEditsAfterKeystroke(fileName: string, position: number, key: string, options: ts.FormatCodeOptions) ts.TextChange[]

Parameters:
Name Type
fileName string
position number
key string
options ts.FormatCodeOptions
Returns: { Array.<ts.TextChange> }

M getFormattingEditsForDocument(fileName: string, options: ts.FormatCodeOptions) ts.TextChange[]

Parameters:
Name Type
fileName string
options ts.FormatCodeOptions
Returns: { Array.<ts.TextChange> }

M getFormattingEditsForRange(fileName: string, start: number, end: number, options: ts.FormatCodeOptions) ts.TextChange[]

Parameters:
Name Type
fileName string
start number
end number
options ts.FormatCodeOptions
Returns: { Array.<ts.TextChange> }

M getIndentationAtPosition(fileName: string, position: number, options: ts.EditorOptions) number

Parameters:
Name Type
fileName string
position number
options ts.EditorOptions
Returns: { number }

M getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number) ts.TextSpan

Parameters:
Name Type
fileName string
startPos number
endPos number
Returns: { ts.TextSpan }

M getNavigateToItems(searchValue: string) ts.NavigateToItem[]

Parameters:
Name Type
searchValue string
Returns: { Array.<ts.NavigateToItem> }

M getNavigationBarItems(fileName: string) ts.NavigationBarItem[]

Parameters:
Name Type
fileName string
Returns: { Array.<ts.NavigationBarItem> }

M getOccurrencesAtPosition(fileName: string, position: number) ts.ReferenceEntry[]

Parameters:
Name Type
fileName string
position number
Returns: { Array.<ts.ReferenceEntry> }

M getOutliningSpans(fileName: string) ts.OutliningSpan[]

Parameters:
Name Type
fileName string
Returns: { Array.<ts.OutliningSpan> }

M getQuickInfoAtPosition(fileName: string, position: number) ts.QuickInfo

Parameters:
Name Type
fileName string
position number
Returns: { ts.QuickInfo }

M getReferencesAtPosition(fileName: string, position: number) ts.ReferenceEntry[]

Parameters:
Name Type
fileName string
position number
Returns: { Array.<ts.ReferenceEntry> }

M getRenameInfo(fileName: string, position: number) ts.RenameInfo

Parameters:
Name Type
fileName string
position number
Returns: { ts.RenameInfo }

M getSemanticClassifications(fileName: string, span: ts.TextSpan) ts.ClassifiedSpan[]

Parameters:
Name Type
fileName string
span ts.TextSpan
Returns: { Array.<ts.ClassifiedSpan> }

M getSemanticDiagnostics(fileName: string) ts.Diagnostic[]

Parameters:
Name Type
fileName string
Returns: { Array.<ts.Diagnostic> }

M getSignatureHelpItems(fileName: string, position: number) ts.SignatureHelpItems

Parameters:
Name Type
fileName string
position number
Returns: { ts.SignatureHelpItems }

M getSourceFile(filename: string) ts.SourceFile

Parameters:
Name Type
filename string
Returns: { ts.SourceFile }

M getSyntacticClassifications(fileName: string, span: ts.TextSpan) ts.ClassifiedSpan[]

Parameters:
Name Type
fileName string
span ts.TextSpan
Returns: { Array.<ts.ClassifiedSpan> }

M getSyntacticDiagnostics(fileName: string) ts.Diagnostic[]

Parameters:
Name Type
fileName string
Returns: { Array.<ts.Diagnostic> }

M getTodoComments(fileName: string, descriptors: ts.TodoCommentDescriptor[]) ts.TodoComment[]

Parameters:
Name Type
fileName string
descriptors Array.<ts.TodoCommentDescriptor>
Returns: { Array.<ts.TodoComment> }