2 implementations of GetService
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\DefaultTextDocumentServiceProvider.cs (1)
20public TService GetService<TService>() where TService : class, IDocumentService
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
207public TService? GetService<TService>()
6 references to GetService
Microsoft.CodeAnalysis.Workspaces (6)
Diagnostics\DiagnosticData.cs (1)
202var documentPropertiesService = document.DocumentServiceProvider.GetService<DocumentPropertiesService>();
Rename\Renamer.cs (1)
109if (document.DocumentServiceProvider.GetService<ISpanMappingService>() != null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
21=> document.DocumentServiceProvider.GetService<Host.ISpanMappingService>()?.SupportsMappingImportDirectives == true;
Workspace\Host\DocumentService\Extensions.cs (3)
17=> document?.DocumentServiceProvider.GetService<IDocumentOperationService>()?.CanApplyChange ?? false; 23=> document?.DocumentServiceProvider.GetService<IDocumentOperationService>()?.SupportDiagnostics ?? false; 29=> documentState.DocumentServiceProvider.GetService<DocumentPropertiesService>()?.DiagnosticsLspClientName == RazorCSharpLspClientName;