1 instantiation of CompletionOptions
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionOptions.cs (1)
56public static readonly CompletionOptions Default = new();
73 references to CompletionOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (1)
183var options = CompletionOptions.Default with { EnterKeyBehavior = sendThroughEnterOption };
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (1)
378var options = CompletionOptions.Default;
Completion\CompletionServiceTests.cs (2)
176var options = CompletionOptions.Default with { PerformSort = performSort }; 225var options = CompletionOptions.Default with { ShowItemsFromUnimportedNamespaces = true };
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
64var options = context.CompletionOptions;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Completion\AbstractCompletionProviderTests.cs (2)
62var options = CompletionOptions.Default; 1280var options = CompletionOptions.Default with
Microsoft.CodeAnalysis.Features (66)
Completion\CommonCompletionProvider.cs (8)
26/// Language used to retrieve <see cref="CompletionOptions"/> from <see cref="OptionSet"/>. 39return ShouldTriggerCompletionImpl(text, caretPosition, trigger, CompletionOptions.Default); 42internal override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions) 45private bool ShouldTriggerCompletionImpl(SourceText text, int caretPosition, CompletionTrigger trigger, in CompletionOptions options) 50public virtual bool IsInsertionTrigger(SourceText text, int insertedCharacterPosition, CompletionOptions options) 61return GetDescriptionAsync(document, item, CompletionOptions.Default, SymbolDescriptionOptions.Default, cancellationToken); 64internal override async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken) 103Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionContext.cs (3)
77internal CompletionOptions CompletionOptions { get; } 127CompletionOptions.Default, 145in CompletionOptions options,
Completion\CompletionOptions.cs (1)
56public static readonly CompletionOptions Default = new();
Completion\CompletionProvider.cs (3)
47internal virtual bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions) 57internal virtual async Task<bool> IsSyntacticTriggerCharacterAsync(Document document, int caretPosition, CompletionTrigger trigger, CompletionOptions options, CancellationToken cancellationToken) 66internal virtual Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\CompletionService.cs (10)
78return GetRules(CompletionOptions.Default); 81internal abstract CompletionRules GetRules(CompletionOptions options); 106var completionOptions = CompletionOptions.Default with { ForceExpandedCompletionIndexCreation = true }; 112internal virtual bool SupportsTriggerOnDeletion(CompletionOptions options) 137CompletionOptions options, 197return GetDescriptionAsync(document, item, CompletionOptions.Default, SymbolDescriptionOptions.Default, cancellationToken); 209internal virtual async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken = default) 390internal void TriggerLoadProjectProviders(Project project, CompletionOptions options) 414CompletionOptions options,
Completion\CompletionService.ProviderManager.cs (5)
96public ImmutableArray<CompletionProvider> GetCachedProjectCompletionProvidersOrQueueLoadInBackground(Project? project, CompletionOptions options) 163return GetCachedProjectCompletionProvidersOrQueueLoadInBackground(project, CompletionOptions.Default).FirstOrDefault(isNameMatchingProviderPredicate); 167Project? project, ImmutableHashSet<string>? roles, CompletionTrigger trigger, in CompletionOptions options) 177in CompletionOptions options) 293CompletionOptions.Default with { ForceExpandedCompletionIndexCreation = true });
Completion\CompletionService_GetCompletions.cs (4)
47var completionOptions = CompletionOptions.Default with { ForceExpandedCompletionIndexCreation = true }; 65CompletionOptions options, 130Document document, ConcatImmutableArray<CompletionProvider> providers, int caretPosition, CompletionOptions options, CompletionTrigger trigger, ImmutableHashSet<string>? roles, SourceText text)
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
73internal sealed override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions) 111internal override Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractCrefCompletionProvider.cs (2)
19Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken) 48Document document, int position, CompletionOptions options, CancellationToken cancellationToken);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
26public sealed override bool IsInsertionTrigger(SourceText text, int insertedCharacterPosition, CompletionOptions options)
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
227internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (1)
48CompletionContext? completionContext, TSyntaxContext context, int position, CompletionOptions options, 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)
23protected abstract Task<bool> ShouldPreselectInferredTypesAsync(CompletionContext? completionContext, int position, CompletionOptions options, CancellationToken cancellationToken); 24protected abstract Task<bool> ShouldProvideAvailableSymbolsInCurrentContextAsync(CompletionContext? completionContext, TSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken); 34CompletionContext? completionContext, TSyntaxContext context, int position, CompletionOptions options, CancellationToken cancellationToken) 204Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\AbstractSymbolCompletionProvider.cs (6)
34CompletionOptions options, 249internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken) 258var options = completionContext.CompletionOptions; 294CompletionOptions options, 358CompletionContext completionContext, Document document, CompletionOptions options, IEnumerable<DocumentId> relatedDocuments, CancellationToken cancellationToken) 386CompletionContext? completionContext, TSyntaxContext syntaxContext, CompletionOptions options, CancellationToken cancellationToken)
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (3)
51var options = completionContext.CompletionOptions; 212protected static bool IsAddingImportsSupported(Document document, CompletionOptions? completionOptions) 219internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
47CompletionOptions options,
Completion\Providers\ImportCompletionProvider\ITypeImportCompletionService.cs (1)
27CompletionOptions options,
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
102internal override async Task<CompletionDescription?> GetDescriptionAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (2)
61Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken) 73public sealed override bool IsInsertionTrigger(SourceText text, int insertedCharacterPosition, CompletionOptions options)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionProvider.cs (2)
18return ShouldTriggerCompletionImpl(text, caretPosition, trigger, CompletionOptions.Default.TriggerOnTypingLetters); 21internal sealed override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (1)
23internal sealed override CompletionRules GetRules(CompletionOptions options)
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (2)
119var options = CompletionOptions.Default with