1 type derived from CompletionItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\VSInternalCompletionItem.cs (1)
13internal class VSInternalCompletionItem : CompletionItem
1 instantiation of CompletionItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
334var 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)
30internal sealed class CompletionResolveHandler : ILspServiceRequestHandler<LSP.CompletionItem, LSP.CompletionItem>, ITextDocumentIdentifierHandler<LSP.CompletionItem, LSP.TextDocumentIdentifier?> 44public LSP.TextDocumentIdentifier? GetTextDocumentIdentifier(LSP.CompletionItem request) 47public Task<LSP.CompletionItem> HandleRequestAsync(LSP.CompletionItem completionItem, RequestContext context, CancellationToken cancellationToken) 65public static Task<LSP.CompletionItem> ResolveCompletionItemAsync( 66LSP.CompletionItem completionItem, 83private static async Task<LSP.CompletionItem> ResolveCompletionItemAsync( 84LSP.CompletionItem completionItem, 116private static bool MatchesLSPCompletionItem(LSP.CompletionItem lspCompletionItem, CompletionItem completionItem) 125private static LSP.TextDocumentIdentifier? GetTextDocumentCacheEntry(LSP.CompletionItem request)
Handler\Completion\CompletionResultFactory.cs (16)
68using var _ = ArrayBuilder<LSP.CompletionItem>.GetInstance(out var lspCompletionItems); 109async Task<LSP.CompletionItem> CreateLSPCompletionItemAsync(CompletionItem item, string typedText) 250foreach (var completionItem in completionList.Items) 268var completionItem = completionList.Items[i]; 299foreach (var completionItem in completionList.Items) 309private static async Task<LSP.CompletionItem> CreateItemAndPopulateTextEditAsync( 334var lspItem = new LSP.CompletionItem() { Label = item.GetEntireDisplayText() }; 359private static async Task<LSP.CompletionItem> CreateVsItemAndPopulateTextEditAsync( 475LSP.CompletionItem lspItem, 504LSP.CompletionItem lspItem, 559public static Task<LSP.CompletionItem> ResolveAsync( 560LSP.CompletionItem lspItem, 575private static async Task<LSP.CompletionItem> DefaultResolveAsync( 576LSP.CompletionItem lspItem, 625private static async Task<LSP.CompletionItem> VsResolveAsync( 626LSP.CompletionItem lspItem,
Handler\Completion\Extensions.cs (1)
51LSP.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 58public CompletionItem[] Items
Protocol\CompletionListItemDefaults.cs (1)
10/// Represents default values of <see cref="CompletionItem"/> properties for items
Protocol\CompletionParams.cs (2)
16internal class CompletionParams : TextDocumentPositionParams, IPartialResultParams<SumType<CompletionItem[], CompletionList>?>, IWorkDoneProgressOptions 33public 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)
37AddOrReplaceConverter<CompletionItem, VSInternalCompletionItem>();
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
74foreach (var completionItem in completionList.Items) 96private 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)
386public static readonly LspRequest<CompletionParams, SumType<CompletionItem[], CompletionList>?> TextDocumentCompletion = new(TextDocumentCompletionName); 402public 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"/>.