2 instantiations of CompletionDescription
Microsoft.CodeAnalysis.Features (2)
Completion\CompletionDescription.cs (2)
36=> new(taggedParts); 51return new CompletionDescription(taggedParts);
92 references to CompletionDescription
Microsoft.AspNetCore.App.Analyzers (8)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (4)
66public override Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 70return Task.FromResult<CompletionDescription?>(null); 73return Task.FromResult<CompletionDescription?>(CompletionDescription.Create(
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (4)
60public override Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 64return Task.FromResult<CompletionDescription?>(null); 67return Task.FromResult<CompletionDescription?>(CompletionDescription.Create(
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternCompletionProviderTests.cs (1)
66var description = await result.Service.GetDescriptionAsync(result.Document, result.Completions.ItemsList[0]);
Microsoft.CodeAnalysis.CSharp.Features (10)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
198internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
316internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
128internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
122internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
132internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
158internal override async Task<CompletionDescription?> GetDescriptionAsync(
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
132private static async Task<CompletionDescription?> GetConversionDescriptionAsync(Document document, CompletionItem item, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Indexers.cs (1)
42private static Task<CompletionDescription> GetIndexerDescriptionAsync(Document document, CompletionItem item, SymbolDescriptionOptions options, CancellationToken cancellationToken)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
160private static Task<CompletionDescription> GetOperatorDescriptionAsync(Document document, CompletionItem item, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
160internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Intellisense\TestState.vb (1)
486Public Async Function GetSelectedItemDescriptionAsync() As Task(Of CompletionDescription)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (2)
119public override Task<CompletionDescription> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 121return Task.FromResult(CompletionDescription.FromText(nameof(DebugAssertTestCompletionProvider)));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
IntelliSense\CompletionServiceTests.vb (2)
137Public Overrides Function GetDescriptionAsync(document As Document, item As CompletionItem, cancellationToken As Threading.CancellationToken) As Task(Of CompletionDescription) 138Return Task.FromResult(CompletionDescription.FromText(DescriptionText))
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Completion\OmniSharpCompletionService.cs (1)
40public static Task<CompletionDescription?> GetDescriptionAsync(
Microsoft.CodeAnalysis.Features (63)
Completion\CommonCompletionItem.cs (4)
66public static CompletionDescription GetDescription(CompletionItem item) 74return CompletionDescription.Empty; 83private static CompletionDescription DecodeDescription(string encoded) 93return CompletionDescription.Create(builder.ToImmutable());
Completion\CommonCompletionProvider.cs (5)
56public sealed override Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 64internal override async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken) 69var description = await GetDescriptionWorkerAsync(document, item, options, displayOptions, cancellationToken).ConfigureAwait(false); 102internal virtual Task<CompletionDescription> GetDescriptionWorkerAsync( 107: Task.FromResult(CompletionDescription.Empty);
Completion\CommonCompletionUtilities.cs (4)
85public static async Task<CompletionDescription> CreateDescriptionAsync( 96return CompletionDescription.Empty; 147return CompletionDescription.Create(textContentBuilder.AsImmutable()); 150public static Task<CompletionDescription> CreateDescriptionAsync(
Completion\CompletionDescription.cs (8)
19/// The <see cref="CompletionDescription"/> used when there is no description. 21public static readonly CompletionDescription Empty = new([]); 32/// Creates a new instance of <see cref="CompletionDescription"/> with the specified <see cref="TaggedText"/> parts. 35public static CompletionDescription Create(ImmutableArray<TaggedText> taggedParts) 39/// Creates a new instance of <see cref="CompletionDescription"/> from untagged text. 41public static CompletionDescription FromText(string text) 45/// Creates a copy of this <see cref="CompletionDescription"/> with the <see cref="TaggedParts"/> property changed. 47public CompletionDescription WithTaggedParts(ImmutableArray<TaggedText> taggedParts)
Completion\CompletionProvider.cs (4)
63public virtual Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 64=> Task.FromResult<CompletionDescription?>(CompletionDescription.Empty); 66internal virtual Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionService.cs (3)
191public Task<CompletionDescription?> GetDescriptionAsync( 209internal virtual async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken = default) 213return CompletionDescription.Empty;
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (1)
111internal override Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractCrefCompletionProvider.cs (2)
18internal override async Task<CompletionDescription> GetDescriptionWorkerAsync( 36return CompletionDescription.Empty;
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
227internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
84internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
110internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (4)
203internal sealed override async Task<CompletionDescription> GetDescriptionWorkerAsync( 213var description = await TryGetDescriptionAsync(document.Id).ConfigureAwait(false); 229return CompletionDescription.Empty; 231async Task<CompletionDescription?> TryGetDescriptionAsync(DocumentId documentId)
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
249internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\EmbeddedLanguageCompletionProvider.cs (1)
25public abstract Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
219internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (2)
137public static async Task<CompletionDescription> GetCompletionDescriptionAsync(Document document, CompletionItem item, SymbolDescriptionOptions options, CancellationToken cancellationToken) 157return CompletionDescription.Empty;
Completion\Providers\MemberInsertingCompletionItem.cs (1)
38public static Task<CompletionDescription> GetDescriptionAsync(CompletionItem item, Document document, SymbolDescriptionOptions options, CancellationToken cancellationToken)
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
102internal override async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\SymbolCompletionItem.cs (5)
184public static async Task<CompletionDescription> GetDescriptionAsync( 191public static async Task<CompletionDescription> GetDescriptionForSymbolsAsync( 195return CompletionDescription.Empty; 357public static async Task<CompletionDescription> GetDescriptionAsync( 369return CompletionDescription.Empty;
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (4)
230public override Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 233return SpecializedTasks.Null<CompletionDescription>(); 235return Task.FromResult((CompletionDescription?)CompletionDescription.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (3)
460public override Task<CompletionDescription> GetDescriptionAsync(Document document, CompletionItem item, CancellationToken cancellationToken) 464return SpecializedTasks.Null<CompletionDescription>(); 467return Task.FromResult(CompletionDescription.Create(
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (6)
52public static Task<CompletionDescription> GetDescriptionAsync(CompletionItem item, Document document, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken) 57public static CompletionDescription GetDescription(CompletionItem item) 60internal sealed override async Task<CompletionDescription> GetDescriptionWorkerAsync( 63var description = await GetDescriptionAsync(item, document, displayOptions, cancellationToken).ConfigureAwait(false); 67protected virtual CompletionDescription UpdateDescription(CompletionDescription completionDescription)
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionProvider.cs (1)
37internal override async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Completion\CompletionResolveTests.cs (2)
517internal override Task<CompletionDescription> GetDescriptionAsync(Document document, CodeAnalysis.Completion.CompletionItem item, CodeAnalysis.Completion.CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken = default) 518=> Task.FromResult(CompletionDescription.Empty);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (1)
110Friend Overrides Function GetDescriptionWorkerAsync(document As Document, item As CompletionItem, options As CompletionOptions, displayOptions As SymbolDescriptionOptions, cancellationToken As CancellationToken) As Task(Of CompletionDescription)