Method GetFormattingEditsAfterKeystroke
- Namespace
- Alternet.Common.TypeScript.Compiler
- Assembly
- Alternet.Common.TypeScript.v10.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
fileNamestringFile name containing source code.
positionintSpecifies current position in text.
keystringPressed key.
optionsFormatCodeOptionsFormatting options.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.