9 implementations of GetService
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\RazorLineFormattingOptionsTests.cs (1)
27public TService? GetService<TService>() where TService : class, IDocumentService
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
60TService? IDocumentServiceProvider.GetService<TService>() where TService : class
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorDocumentServiceProviderWrapper.cs (1)
30public TService? GetService<TService>() where TService : class, IDocumentService
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\DefaultTextDocumentServiceProvider.cs (1)
20public TService GetService<TService>() where TService : class, IDocumentService
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
101public TService? GetService<TService>()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestDocumentServiceProvider.cs (1)
32public TService? GetService<TService>() where TService : class, IDocumentService
Microsoft.VisualStudio.LanguageServices (2)
ExternalAccess\VSTypeScript\Api\VSTypeScriptVisualStudioProjectWrapper.LSPContainedDocumentServiceProvider.cs (1)
26TService? IDocumentServiceProvider.GetService<TService>() where TService : class
Venus\ContainedDocument.DocumentServiceProvider.cs (1)
42public TService GetService<TService>() where TService : class, IDocumentService
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
251Public Function GetService(Of TService As {Class, IDocumentService})() As TService Implements IDocumentServiceProvider.GetService
16 references to GetService
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.cs (1)
812var spanMappingService = document.Services.GetService<ISpanMappingService>();
Microsoft.CodeAnalysis.Workspaces (6)
AddImportPlacementOptions.cs (1)
65=> document.Services.GetService<ISpanMappingService>()?.SupportsMappingImportDirectives == true;
Diagnostics\DiagnosticData.cs (1)
227var documentPropertiesService = document.Services.GetService<DocumentPropertiesService>();
Rename\Renamer.cs (1)
119if (document.Services.GetService<ISpanMappingService>() != null)
Workspace\Host\DocumentService\Extensions.cs (3)
17=> document?.Services.GetService<IDocumentOperationService>()?.CanApplyChange ?? false; 23=> document?.Services.GetService<IDocumentOperationService>()?.SupportDiagnostics ?? false; 29=> documentState.Services.GetService<DocumentPropertiesService>()?.DiagnosticsLspClientName == RazorCSharpLspClientName;
Microsoft.VisualStudio.LanguageServices (7)
CodeLens\RemoteCodeLensReferencesService.cs (2)
154var spanMapper = document.Services.GetService<ISpanMappingService>(); 177var excerpter = document.Services.GetService<IDocumentExcerptService>();
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
394var excerptService = documentSpan.Document.Services.GetService<IDocumentExcerptService>();
FindReferences\Entries\AbstractDocumentSpanEntry.cs (1)
60var service = documentSpan.Document.Services.GetService<ISpanMappingService>();
FindReferences\Entries\DocumentSpanEntry.cs (1)
228var excerptService = document.Services.GetService<IDocumentExcerptService>();
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
691spanMappingService = document.Services.GetService<ISpanMappingService>();
Workspace\VisualStudioDocumentNavigationService.cs (1)
264var spanMappingService = document.Services.GetService<ISpanMappingService>();
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Venus\DocumentService_IntegrationTests.vb (1)
251Public Function GetService(Of TService As {Class, IDocumentService})() As TService Implements IDocumentServiceProvider.GetService
Venus\DocumentServiceTests.vb (1)
118Dim documentOperations = documentServices.GetService(Of IDocumentOperationService)()