CodeFixHandler.SuggestFixesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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).
- cancel
- CancellationToken