Freigeben über


CodeFixHandler.SuggestFixesAsync Method

Definition

Invoked by user when there are errors present - offers possible fixes for the errors.

public abstract System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.PowerFx.Intellisense.CodeFixSuggestion>> SuggestFixesAsync(Microsoft.PowerFx.Engine engine, Microsoft.PowerFx.CheckResult checkResult, System.Threading.CancellationToken cancel);
abstract member SuggestFixesAsync : Microsoft.PowerFx.Engine * Microsoft.PowerFx.CheckResult * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.PowerFx.Intellisense.CodeFixSuggestion>>
Public MustOverride Function SuggestFixesAsync (engine As Engine, checkResult As CheckResult, cancel As CancellationToken) As Task(Of IEnumerable(Of CodeFixSuggestion))

Parameters

engine
Engine

The engine that that the result was for. This can be useful for gathering broader context for the fix.

checkResult
CheckResult

An attempt at parsing and binding. This is likely unsuccessful (hence the request for the codefix).

Returns

Applies to