2 implementations of GetService
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\DefaultTextDocumentServiceProvider.cs (1)
20
public TService
GetService
<TService>() where TService : class, IDocumentService
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
207
public TService?
GetService
<TService>()
6 references to GetService
Microsoft.CodeAnalysis.Workspaces (6)
Diagnostics\DiagnosticData.cs (1)
202
var documentPropertiesService = document.DocumentServiceProvider.
GetService
<DocumentPropertiesService>();
Rename\Renamer.cs (1)
109
if (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;