10 types derived from CompletionService
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\Completion\InteractiveCommandCompletionService.cs (1)
14internal sealed class InteractiveCommandCompletionService : CompletionService
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
IntelliSense\CompletionServiceTests.vb (1)
49Inherits CompletionService
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (1)
55Inherits CompletionService
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
641Inherits CompletionService
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Completion\FSharpCompletionServiceWithProviders.cs (1)
10internal abstract class FSharpCompletionServiceWithProviders : CompletionService
Microsoft.CodeAnalysis.Features (2)
Completion\CommonCompletionService.cs (1)
12internal abstract partial class CommonCompletionService : CompletionService
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (1)
14internal abstract class VSTypeScriptCompletionServiceWithProviders : CompletionService
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Completion\CompletionFeaturesTests.cs (2)
571private sealed class CSharpLspMockCompletionService : CompletionService 864private sealed class CSharpLspThrowExceptionOnChangeCompletionService : CompletionService
Completion\CompletionResolveTests.cs (1)
481private class TestCaretOutOfScopeCompletionService : CompletionService
141 references to CompletionService
Microsoft.AspNetCore.App.Analyzers.Test (3)
TestDiagnosticAnalyzer.cs (3)
52var completionService = CompletionService.GetService(doc); 177public record CompletionResult(Document Document, CompletionService Service, CompletionList Completions, TextSpan CompletionListSpan, bool ShouldTriggerCompletion);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (24)
Completion\CompletionProviders\AbstractCSharpCompletionProviderTests.cs (2)
46internal override CompletionService GetCompletionService(Project project) 185var service = GetCompletionService(document.Project);
Completion\CompletionProviders\CrefCompletionProviderTests.cs (1)
449var service = GetCompletionService(document.Project);
Completion\CompletionProviders\ObjectInitializerCompletionProviderTests.cs (2)
693var service = GetCompletionService(document.Project); 1285var service = GetCompletionService(document.Project);
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (6)
2473var service = GetCompletionService(document.Project); 2726var service = GetCompletionService(document.Project); 2781var service = GetCompletionService(document.Project); 3063var service = GetCompletionService(document.Project); 3198var service = GetCompletionService(document.Project); 3252var service = GetCompletionService(document.Project);
Completion\CompletionProviders\SuggestionModeCompletionProviderTests.cs (1)
1530var service = GetCompletionService(document.Project);
Completion\CompletionProviders\SymbolCompletionProviderTests_NoInteractive.cs (2)
377var service = CompletionService.GetService(document);
Completion\CompletionServiceTests.cs (10)
41var service = CompletionService.GetService(document); 55var service = CompletionService.GetService(document); 113var service = CompletionService.GetService(document); 141var service = CompletionService.GetService(document); 174var completionService = document.GetLanguageService<CompletionService>(); 213var completionService = document.GetLanguageService<CompletionService>();
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CSharpCompletionService.cs (1)
19[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp), Shared]
Microsoft.CodeAnalysis.EditorFeatures (12)
IntelliSense\AsyncCompletion\CommitManager.cs (2)
109var completionService = document.GetLanguageService<CompletionService>(); 187CompletionService completionService,
IntelliSense\AsyncCompletion\CompletionSource.cs (4)
110var service = document.GetLanguageService<CompletionService>(); 154CompletionService completionService, 388var completionService = document.GetRequiredLanguageService<CompletionService>(); 471var service = document.GetLanguageService<CompletionService>();
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (5)
49private readonly CompletionService? _completionService; 96_completionService = _document.GetLanguageService<CompletionService>(); 103? ((matchResults, text, filteredItemsBuilder) => CompletionService.FilterItems(_completionHelper, matchResults, text, filteredItemsBuilder)) 120_filterMethod = (matchResults, text, filteredMatchResultsBuilder) => CompletionService.FilterItems(_completionHelper, matchResults, text, filteredMatchResultsBuilder); 780if (_filterText.Length > 0 && CompletionService.IsAllPunctuation(_filterText) && _filterText != item.DisplayText)
Interactive\Completion\InteractiveCommandCompletionService.cs (1)
16[ExportLanguageServiceFactory(typeof(CompletionService), InteractiveLanguageNames.InteractiveCommand), Shared]
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (15)
Completion\AbstractCompletionProviderTests.cs (15)
102internal virtual CompletionService GetCompletionService(Project project) 104var completionService = project.Services.GetRequiredService<CompletionService>(); 133CompletionService service, 191var completionService = GetCompletionService(document.Project); 612var service = GetCompletionService(document.Project); 630CompletionService service, 671CompletionService service, 736var service = GetCompletionService(document.Project); 965var completionService = GetCompletionService(document.Project); 1019var completionService = GetCompletionService(document.Project); 1049var completionService = GetCompletionService(document.Project); 1278var service = GetCompletionService(document.Project); 1326var service = GetCompletionService(document.Project); 1357var completionService = GetCompletionService(document.Project);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (1)
Intellisense\TestState.vb (1)
494Dim service = CompletionService.GetService(document)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Completion\CompletionServiceTests.cs (2)
44var completionService = project.Services.GetRequiredService<CompletionService>();
Workspaces\DefaultMefHostTests.cs (4)
26var csservice = ws.Services.GetLanguageServices(LanguageNames.CSharp).GetService<Microsoft.CodeAnalysis.Completion.CompletionService>(); 29var vbservice = ws.Services.GetLanguageServices(LanguageNames.VisualBasic).GetService<Microsoft.CodeAnalysis.Completion.CompletionService>();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (32)
IntelliSense\CompletionServiceTests.vb (1)
102Dim completionService = document.GetRequiredLanguageService(Of CompletionService)()
IntelliSense\CSharpCompletionCommandHandlerTests.vb (25)
4241Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5130Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5181Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5257Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5326Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5843Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 5911Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6643Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6668Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6698Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6727Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6752Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6777Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6804Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6854Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 6924Dim completionService = document.GetLanguageService(Of CompletionService)() 6977Dim completionService = document.GetLanguageService(Of CompletionService)() 9537Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 9569Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10294Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10377Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10432Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 10486Dim completionService = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)() 11620Dim completionService = document.GetRequiredLanguageService(Of CompletionService)() 12382Dim completionService = document.GetRequiredLanguageService(Of CompletionService)()
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (3)
499Dim completionService = DirectCast(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)(), MockCompletionServiceFactory.Service) 567Dim completionService = DirectCast(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService(Of CompletionService)(), MockCompletionServiceFactory.Service) 624<ExportLanguageServiceFactory(GetType(CompletionService), LanguageNames.CSharp), [Shared], PartNotDiscoverable>
IntelliSense\VisualBasicCompletionCommandHandlerTests.vb (3)
406Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetRequiredService(Of CompletionService)() 444Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetRequiredService(Of CompletionService)() 478Dim completionService = state.Workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetRequiredService(Of CompletionService)()
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (3)
Completion\OmniSharpCompletionService.cs (3)
16this CompletionService completionService, 29this CompletionService completionService, 41this CompletionService completionService,
Microsoft.CodeAnalysis.Features (17)
Completion\CommonCompletionService.cs (1)
49CompletionService.FilterItems(CompletionHelper.GetHelper(document), matchResults, filterText, builder);
Completion\CompletionContext.cs (2)
58/// the result of <see cref="CompletionService.GetDefaultCompletionListSpan"/>, but it can 59/// be overwritten during <see cref="CompletionService.GetCompletionsAsync(Document, int, CompletionTrigger, ImmutableHashSet{string}, OptionSet, CancellationToken)"/>.
Completion\CompletionService.cs (6)
51public static CompletionService? GetService(Document? document) 52=> document?.GetLanguageService<CompletionService>(); 124/// <param name="passThroughOptions">Options originating either from external caller of the <see cref="CompletionService"/> or set externally to <see cref="Solution.Options"/>.</param> 399internal readonly struct TestAccessor(CompletionService completionServiceWithProviders) 401private readonly CompletionService _completionServiceWithProviders = completionServiceWithProviders; 420return await CompletionService.GetContextAsync(
Completion\CompletionService.ProviderManager.cs (2)
31private readonly CompletionService _service; 35public ProviderManager(CompletionService service, IAsynchronousOperationListenerProvider listenerProvider)
Completion\ExportCompletionProviderAttribute.cs (1)
12/// be found and used by the per language associated <see cref="CompletionService"/>.
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
125var completionService = document.GetRequiredLanguageService<CompletionService>();
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (4)
111var service = CompletionService.GetService(document); 202var service = CompletionService.GetService(document);
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
Handler\Completion\CompletionHandler.cs (4)
87var completionService = document.GetRequiredLanguageService<CompletionService>(); 120CompletionService completionService, 172CompletionService completionService, 200var isFilterTextAllPunctuation = CompletionService.IsAllPunctuation(filterText);
Handler\Completion\CompletionResolveHandler.cs (2)
102var completionService = document.Project.Services.GetRequiredService<CompletionService>();
Handler\Completion\CompletionResultFactory.cs (10)
71var completionService = document.GetRequiredLanguageService<CompletionService>(); 318CompletionService completionService, 366CompletionService completionService, 505CompletionService completionService, 523CompletionService completionService, 546private static async Task<CompletionChange> GetCompletionChangeOrDisplayNameInCaseOfExceptionAsync(CompletionService completionService, Document document, CompletionItem completionItem, CancellationToken cancellationToken) 565CompletionService completionService, 581CompletionService completionService, 630CompletionService completionService, 667CompletionService completionService,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (6)
Completion\CompletionFeaturesTests.cs (6)
395var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService; 442var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService; 611[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp, ServiceLayer.Test), Shared] 769var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspMockCompletionService; 902[ExportLanguageServiceFactory(typeof(CompletionService), LanguageNames.CSharp, ServiceLayer.Test), Shared] 929var mockService = testLspServer.TestWorkspace.Services.GetLanguageServices(LanguageNames.CSharp).GetRequiredService<CompletionService>() as CSharpLspThrowExceptionOnChangeCompletionService;
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\VisualBasicCompletionService.vb (1)
20<ExportLanguageServiceFactory(GetType(CompletionService), LanguageNames.VisualBasic), [Shared]>
Microsoft.VisualStudio.LanguageServices (3)
LanguageService\AbstractCreateServicesOnTextViewConnection.cs (3)
91if (project.GetLanguageService<CompletionService>() is CompletionService completionService) 113languageServices.GetService<CompletionService>()?.LoadImportedProviders();
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Snippets\SnippetCompletionProviderTests.vb (1)
32Dim service = CompletionService.GetService(document)