1 type derived from CodeAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\VSInternalCodeAction.cs (1)
13internal class VSInternalCodeAction : CodeAction
2 instantiations of CodeAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\CodeActions\CodeActionHelpers.cs (2)
183builder.Add(new LSP.CodeAction 203builder.Add(new LSP.CodeAction
34 references to CodeAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (34)
Handler\CodeActions\CodeActionHelpers.cs (8)
31public static async Task<LSP.CodeAction[]> GetVSCodeActionsAsync( 44using var _ = ArrayBuilder<LSP.CodeAction>.GetInstance(out var codeActions); 103private static LSP.CodeAction[] GenerateCodeActions( 111using var _ = ArrayBuilder<LSP.CodeAction>.GetInstance(out var builder); 134private static ImmutableArray<LSP.CodeAction> CollectNestedActions( 143using var _1 = ArrayBuilder<LSP.CodeAction>.GetInstance(out var nestedCodeActions); 169ArrayBuilder<LSP.CodeAction> builder, 175ImmutableArray<LSP.CodeAction>? nestedCodeActions,
Handler\CodeActions\CodeActionResolveData.cs (2)
40public ImmutableArray<LSP.CodeAction>? NestedCodeActions { get; } 49ImmutableArray<LSP.CodeAction>? nestedCodeActions)
Handler\CodeActions\CodeActionResolveHandler.cs (6)
32internal class CodeActionResolveHandler : ILspServiceDocumentRequestHandler<LSP.CodeAction, LSP.CodeAction> 53public TextDocumentIdentifier GetTextDocumentIdentifier(LSP.CodeAction request) 56public async Task<LSP.CodeAction> HandleRequestAsync(LSP.CodeAction codeAction, RequestContext context, CancellationToken cancellationToken) 99internal static CodeActionResolveData GetCodeActionResolveData(LSP.CodeAction request)
Handler\CodeActions\CodeActionsHandler.cs (2)
27internal class CodeActionsHandler : ILspServiceDocumentRequestHandler<LSP.CodeActionParams, LSP.CodeAction[]> 54public async Task<LSP.CodeAction[]> HandleRequestAsync(LSP.CodeActionParams request, RequestContext context, CancellationToken cancellationToken)
Handler\CodeActions\RoslynFixAllCodeAction.cs (1)
10internal sealed class RoslynFixAllCodeAction(string scope) : CodeAction
Protocol\CodeAction.cs (2)
11/// <see cref="CodeAction.Edit"/> or <see cref="CodeAction.Command"/>. If both are supplied,
Protocol\CodeActionParams.cs (2)
16internal class CodeActionParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<SumType<Command, CodeAction>[]> 59public IProgress<SumType<Command, CodeAction>[]>? PartialResultToken { get; set; }
Protocol\CodeActionSetting.cs (4)
31/// Whether code action supports the <see cref="CodeAction.IsPreferred"/> property. 39/// Whether code action supports the <see cref="CodeAction.Disabled"/> property. 47/// Gets or sets a value indicating whether code action supports the <see cref="CodeAction.Data"/> 76/// resource operations returned via the <see cref="CodeAction.Edit"/> property by
Protocol\Extensions\Converters\VSExtensionUtilities.cs (2)
20/// For example, it allows to correctly deserialize the <see cref="CodeAction.Diagnostics"/> entries of a 21/// 'codeAction/resolve' request into <see cref="VSDiagnostic"/> objects even if <see cref="CodeAction.Diagnostics"/>
Protocol\Internal\Converters\VSInternalExtensionUtilities.cs (1)
33AddOrReplaceConverter<CodeAction, VSInternalCodeAction>();
Protocol\Internal\VSInternalCodeAction.cs (1)
11/// Class used to extend <see cref="CodeAction" /> to add the data field for codeAction/_ms_resolve support.
Protocol\Methods.Document.cs (3)
436public static readonly LspRequest<CodeActionParams, SumType<Command, CodeAction>[]?> TextDocumentCodeAction = new(TextDocumentCodeActionName); 457public static readonly LspRequest<CodeAction, CodeAction> CodeActionResolve = new(CodeActionResolveName);