Table of Contents

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 string

File name containing source code.

position int

Specifies current position in text.

key string

Pressed key.

options FormatCodeOptions

Formatting options.

Returns

IEnumerable<TextChange>

The set of TextChange representing list of the document changes.