Methods
M findRenameLocations(fileName: string, position: number, findInStrings: boolean, findInComments: boolean) ts.RenameLocation[]
Parameters:
Name | Type |
---|---|
fileName |
string |
position |
number |
findInStrings |
boolean |
findInComments |
boolean |
M getBraceMatchingAtPosition(fileName: string, position: number) ts.TextSpan[]
M getBreakpointStatementAtPosition(fileName: string, position: number) ts.TextSpan
M getCompilerOptionsDiagnostics() ts.Diagnostic[]
M getCompletionEntryDetails(fileName: string, position: number, entryName: string) ts.CompletionEntryDetails
Parameters:
Name | Type |
---|---|
fileName |
string |
position |
number |
entryName |
string |
M getCompletionsAtPosition(fileName: string, position: number) ts.CompletionInfo
M getDefinitionAtPosition(fileName: string, position: number) ts.DefinitionInfo[]
M getEmitOutput(fileName: string) 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 |
M getFormattingEditsForDocument(fileName: string, options: ts.FormatCodeOptions) ts.TextChange[]
Parameters:
Name | Type |
---|---|
fileName |
string |
options |
ts.FormatCodeOptions |
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 |
M getIndentationAtPosition(fileName: string, position: number, options: ts.EditorOptions) number
M getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number) ts.TextSpan
M getNavigateToItems(searchValue: string) ts.NavigateToItem[]
M getNavigationBarItems(fileName: string) ts.NavigationBarItem[]
M getOccurrencesAtPosition(fileName: string, position: number) ts.ReferenceEntry[]
M getOutliningSpans(fileName: string) ts.OutliningSpan[]
M getQuickInfoAtPosition(fileName: string, position: number) ts.QuickInfo
M getReferencesAtPosition(fileName: string, position: number) ts.ReferenceEntry[]
M getRenameInfo(fileName: string, position: number) ts.RenameInfo
M getSemanticClassifications(fileName: string, span: ts.TextSpan) ts.ClassifiedSpan[]
M getSemanticDiagnostics(fileName: string) ts.Diagnostic[]
M getSignatureHelpItems(fileName: string, position: number) ts.SignatureHelpItems
M getSourceFile(filename: string) ts.SourceFile
M getSyntacticClassifications(fileName: string, span: ts.TextSpan) ts.ClassifiedSpan[]
M getSyntacticDiagnostics(fileName: string) ts.Diagnostic[]
M getTodoComments(fileName: string, descriptors: ts.TodoCommentDescriptor[]) ts.TodoComment[]
Parameters:
Name | Type |
---|---|
fileName |
string |
descriptors |
Array.<ts.TodoCommentDescriptor> |