Table of Contents

Method HasCodeFixesAsync

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

HasCodeFixesAsync(ISyntaxError, bool, CancellationToken)

When implemented by a class, determines if code fixes are available for a given syntax error in async mode.

Task<bool> HasCodeFixesAsync(ISyntaxError error, bool allDocuments = false, CancellationToken cancellationToken = default)

Parameters

error ISyntaxError

Specifies syntax error.

allDocuments bool

Specifies if all documents in the solution need to be processed.

cancellationToken CancellationToken

Cancellation token

Returns

Task<bool>

True if code fixes are available, otherwise false.