Share via


CodeAction.ComputeOperationsAsync Method

Definition

Overloads

ComputeOperationsAsync(CancellationToken)

Override this method if you want to implement a CodeAction subclass that includes custom CodeActionOperation's.

ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken)

Override this method if you want to implement a CodeAction subclass that includes custom CodeActionOperation's. Prefer overriding this method over ComputeOperationsAsync(CancellationToken) when computation is long running and progress should be shown to the user.

ComputeOperationsAsync(CancellationToken)

Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs
Source:
CodeAction.cs

Override this method if you want to implement a CodeAction subclass that includes custom CodeActionOperation's.

protected:
 virtual System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CodeActions::CodeActionOperation ^> ^> ^ ComputeOperationsAsync(System::Threading::CancellationToken cancellationToken);
protected virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (System.Threading.CancellationToken cancellationToken);
abstract member ComputeOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
override this.ComputeOperationsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overridable Function ComputeOperationsAsync (cancellationToken As CancellationToken) As Task(Of IEnumerable(Of CodeActionOperation))

Parameters

cancellationToken
CancellationToken

Returns

Applies to

ComputeOperationsAsync(IProgress<CodeAnalysisProgress>, CancellationToken)

Source:
CodeAction.cs

Override this method if you want to implement a CodeAction subclass that includes custom CodeActionOperation's. Prefer overriding this method over ComputeOperationsAsync(CancellationToken) when computation is long running and progress should be shown to the user.

protected virtual System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>> ComputeOperationsAsync (IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> progress, System.Threading.CancellationToken cancellationToken);
abstract member ComputeOperationsAsync : IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
override this.ComputeOperationsAsync : IProgress<Microsoft.CodeAnalysis.CodeAnalysisProgress> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>
Protected Overridable Function ComputeOperationsAsync (progress As IProgress(Of CodeAnalysisProgress), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of CodeActionOperation))

Parameters

cancellationToken
CancellationToken

Returns

Applies to