Skip to content

[F] applyCodeFixes

function applyCodeFixes(host, codeFixes): Promise<void>;

Resolve all fixes and write their combined edits, grouped by source file, through the host. Edits for a file must use the same original source text and must not overlap.

ParameterType
hostCompilerHost
codeFixesreadonly CodeFix[]

Promise<void>