7 implementations of GetService
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\RazorLineFormattingOptionsTests.cs (1)
26public TService? GetService<TService>() where TService : class, IDocumentService
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (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)
274public 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)
41public TService GetService<TService>() where TService : class, IDocumentService
12 references to GetService
Microsoft.CodeAnalysis.Workspaces (8)
Diagnostics\DiagnosticData.cs (1)
218var documentPropertiesService = document.DocumentServiceProvider.GetService<DocumentPropertiesService>();
Rename\Renamer.cs (1)
107if (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;
Workspace\Host\DocumentService\SpanMappingHelper.cs (2)
22return document.DocumentServiceProvider.GetService<ISpanMappingService>() is not null; 41var spanMappingService = document.DocumentServiceProvider.GetService<ISpanMappingService>();
Microsoft.VisualStudio.LanguageServices (4)
CodeLens\RemoteCodeLensReferencesService.cs (1)
176var excerpter = document.DocumentServiceProvider.GetService<IDocumentExcerptService>();
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
474var excerptService = document.DocumentServiceProvider.GetService<IDocumentExcerptService>();
FindReferences\Entries\DocumentSpanEntry.cs (1)
186var excerptService = document.DocumentServiceProvider.GetService<IDocumentExcerptService>();
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
652spanMappingService = document.DocumentServiceProvider.GetService<ISpanMappingService>();