Method GetFormattingEditsAfterKeystroke
- Namespace
- Alternet.Common.TypeScript.Compiler
- Assembly
- Alternet.Common.TypeScript.v9.dll
GetFormattingEditsAfterKeystroke(string, int, string, FormatCodeOptions)
Gets list of TextChange between specified document and previous version of the same document.
public IEnumerable<TextChange> GetFormattingEditsAfterKeystroke(string fileName, int position, string key, FormatCodeOptions options)
Parameters
fileName
stringFile name containing source code.
position
intSpecifies current position in text.
key
stringPressed key.
options
FormatCodeOptionsFormatting options.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.