1 type derived from CompletionItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\VSInternalCompletionItem.cs (1)
13
internal class VSInternalCompletionItem :
CompletionItem
1 instantiation of CompletionItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
334
var lspItem = new LSP.
CompletionItem
() { Label = item.GetEntireDisplayText() };
65 references to CompletionItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (65)
Handler\Completion\CompletionResolveData.cs (1)
11
/// Passed along via <see cref="LSP.
CompletionItem
.Data"/>.
Handler\Completion\CompletionResolveHandler.cs (12)
30
internal sealed class CompletionResolveHandler : ILspServiceRequestHandler<LSP.
CompletionItem
, LSP.
CompletionItem
>, ITextDocumentIdentifierHandler<LSP.
CompletionItem
, LSP.TextDocumentIdentifier?>
44
public LSP.TextDocumentIdentifier? GetTextDocumentIdentifier(LSP.
CompletionItem
request)
47
public Task<LSP.
CompletionItem
> HandleRequestAsync(LSP.
CompletionItem
completionItem, RequestContext context, CancellationToken cancellationToken)
65
public static Task<LSP.
CompletionItem
> ResolveCompletionItemAsync(
66
LSP.
CompletionItem
completionItem,
83
private static async Task<LSP.
CompletionItem
> ResolveCompletionItemAsync(
84
LSP.
CompletionItem
completionItem,
116
private static bool MatchesLSPCompletionItem(LSP.
CompletionItem
lspCompletionItem, CompletionItem completionItem)
125
private static LSP.TextDocumentIdentifier? GetTextDocumentCacheEntry(LSP.
CompletionItem
request)
Handler\Completion\CompletionResultFactory.cs (16)
68
using var _ = ArrayBuilder<LSP.
CompletionItem
>.GetInstance(out var lspCompletionItems);
109
async Task<LSP.
CompletionItem
> CreateLSPCompletionItemAsync(CompletionItem item, string typedText)
250
foreach (
var
completionItem in completionList.Items)
268
var
completionItem = completionList.Items[i];
299
foreach (
var
completionItem in completionList.Items)
309
private static async Task<LSP.
CompletionItem
> CreateItemAndPopulateTextEditAsync(
334
var
lspItem = new LSP.CompletionItem() { Label = item.GetEntireDisplayText() };
359
private static async Task<LSP.
CompletionItem
> CreateVsItemAndPopulateTextEditAsync(
475
LSP.
CompletionItem
lspItem,
504
LSP.
CompletionItem
lspItem,
559
public static Task<LSP.
CompletionItem
> ResolveAsync(
560
LSP.
CompletionItem
lspItem,
575
private static async Task<LSP.
CompletionItem
> DefaultResolveAsync(
576
LSP.
CompletionItem
lspItem,
625
private static async Task<LSP.
CompletionItem
> VsResolveAsync(
626
LSP.
CompletionItem
lspItem,
Handler\Completion\Extensions.cs (1)
51
LSP.
CompletionItem
request,
Protocol\CompletionItemLabelDetails.cs (2)
20
/// <see cref="
CompletionItem
.Label"/>, without any spacing. Should be
33
/// <see cref="
CompletionItem
.Detail"/>. Should be used for fully qualified
Protocol\CompletionItemSetting.cs (13)
11
/// Client capabilities specific to <see cref="
CompletionItem
"/>.
19
/// The client supports treating <see cref="
CompletionItem
.InsertText"/> as a snippet
20
/// when <see cref="
CompletionItem
.InsertTextFormat"/> is set to <see cref="InsertTextFormat.Snippet"/>.
37
/// The client supports the <see cref="
CompletionItem
.CommitCharacters"/> property.
48
/// The client supports the following content formats for the <see cref="
CompletionItem
.Documentation"/>
60
/// The client supports the <see cref="
CompletionItem
.Deprecated"/> property on a completion item.
72
/// The client supports the <see cref="
CompletionItem
.Preselect"/> property.
83
/// The tags that the client supports on the <see cref="
CompletionItem
.Tags"/> property.
101
/// <see cref="
CompletionItem
.TextEdit"/> property.
115
/// Before version 3.16 only the predefined properties <see cref="
CompletionItem
.Documentation"/>
116
/// and <see cref="
CompletionItem
.Detail"/> could be resolved lazily.
129
/// Indicates whether the client supports the <see cref="
CompletionItem
.InsertTextMode"/>
142
/// Indicates whether the client supports the <see cref="
CompletionItem
.LabelDetails"/> property.
Protocol\CompletionItemTagSupportSetting.cs (1)
10
/// Represents the tags supported by the client on the <see cref="
CompletionItem
.Tags"/> property.
Protocol\CompletionList.cs (2)
32
/// Default values of <see cref="
CompletionItem
"/> properties for items
58
public
CompletionItem
[] Items
Protocol\CompletionListItemDefaults.cs (1)
10
/// Represents default values of <see cref="
CompletionItem
"/> properties for items
Protocol\CompletionParams.cs (2)
16
internal class CompletionParams : TextDocumentPositionParams, IPartialResultParams<SumType<
CompletionItem
[], CompletionList>?>, IWorkDoneProgressOptions
33
public IProgress<SumType<
CompletionItem
[], CompletionList>?>? PartialResultToken
Protocol\CompletionSetting.cs (2)
18
/// The client supports the following <see cref="Protocol.
CompletionItem
"/> specific capabilities.
53
/// provide a value for the <see cref="
CompletionItem
.InsertTextMode"/> property.
Protocol\InsertTextModeSupportSetting.cs (2)
10
/// The client's capabilities specific to the <see cref="
CompletionItem
.InsertTextMode"/> property.
17
/// onf the the <see cref="
CompletionItem
.InsertTextMode"/> property.
Protocol\Internal\Converters\VSInternalExtensionUtilities.cs (1)
37
AddOrReplaceConverter<
CompletionItem
, VSInternalCompletionItem>();
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
74
foreach (
var
completionItem in completionList.Items)
96
private static void WriteCompletionItem(Utf8JsonWriter writer,
CompletionItem
completionItem, JsonSerializerOptions options, Dictionary<object, string> itemRawJsonCache)
Protocol\Internal\VSInternalCompletionItem.cs (1)
37
/// Gets or sets the set of characters that will commit completion when this <see cref="
CompletionItem
" /> is selected.
Protocol\Internal\VSInternalCompletionList.cs (2)
42
/// Gets or sets the default <see cref="
CompletionItem
.Data"/> used for completion items.
53
/// Gets or sets the default <see cref="
CompletionItem
.CommitCharacters"/> or <see cref="VSInternalCompletionItem.VsCommitCharacters"/> used for completion items.
Protocol\Methods.Document.cs (3)
386
public static readonly LspRequest<CompletionParams, SumType<
CompletionItem
[], CompletionList>?> TextDocumentCompletion = new(TextDocumentCompletionName);
402
public static readonly LspRequest<
CompletionItem
,
CompletionItem
> TextDocumentCompletionResolve = new(TextDocumentCompletionResolveName);
Protocol\ResolveSupportSetting.cs (1)
10
/// Indicates which properties a client can resolve lazily on a <see cref="
CompletionItem
"/>.