1 type derived from CodeAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\VSInternalCodeAction.cs (1)
13
internal class VSInternalCodeAction :
CodeAction
2 instantiations of CodeAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\CodeActions\CodeActionHelpers.cs (2)
183
builder.Add(new LSP.
CodeAction
203
builder.Add(new LSP.
CodeAction
34 references to CodeAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (34)
Handler\CodeActions\CodeActionHelpers.cs (8)
31
public static async Task<LSP.
CodeAction
[]> GetVSCodeActionsAsync(
44
using var _ = ArrayBuilder<LSP.
CodeAction
>.GetInstance(out var codeActions);
103
private static LSP.
CodeAction
[] GenerateCodeActions(
111
using var _ = ArrayBuilder<LSP.
CodeAction
>.GetInstance(out var builder);
134
private static ImmutableArray<LSP.
CodeAction
> CollectNestedActions(
143
using var _1 = ArrayBuilder<LSP.
CodeAction
>.GetInstance(out var nestedCodeActions);
169
ArrayBuilder<LSP.
CodeAction
> builder,
175
ImmutableArray<LSP.
CodeAction
>? nestedCodeActions,
Handler\CodeActions\CodeActionResolveData.cs (2)
40
public ImmutableArray<LSP.
CodeAction
>? NestedCodeActions { get; }
49
ImmutableArray<LSP.
CodeAction
>? nestedCodeActions)
Handler\CodeActions\CodeActionResolveHandler.cs (6)
32
internal class CodeActionResolveHandler : ILspServiceDocumentRequestHandler<LSP.
CodeAction
, LSP.
CodeAction
>
53
public TextDocumentIdentifier GetTextDocumentIdentifier(LSP.
CodeAction
request)
56
public async Task<LSP.
CodeAction
> HandleRequestAsync(LSP.
CodeAction
codeAction, RequestContext context, CancellationToken cancellationToken)
99
internal static CodeActionResolveData GetCodeActionResolveData(LSP.
CodeAction
request)
Handler\CodeActions\CodeActionsHandler.cs (2)
27
internal class CodeActionsHandler : ILspServiceDocumentRequestHandler<LSP.CodeActionParams, LSP.
CodeAction
[]>
54
public async Task<LSP.
CodeAction
[]> HandleRequestAsync(LSP.CodeActionParams request, RequestContext context, CancellationToken cancellationToken)
Handler\CodeActions\RoslynFixAllCodeAction.cs (1)
10
internal 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)
16
internal class CodeActionParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<SumType<Command,
CodeAction
>[]>
59
public 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)
33
AddOrReplaceConverter<
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)
436
public static readonly LspRequest<CodeActionParams, SumType<Command,
CodeAction
>[]?> TextDocumentCodeAction = new(TextDocumentCodeActionName);
457
public static readonly LspRequest<
CodeAction
,
CodeAction
> CodeActionResolve = new(CodeActionResolveName);