1 implementation of GetRequiredService
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
LspServices\LspServices.cs (1)
88public T GetRequiredService<T>() where T : notnull
13 references to GetRequiredService
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Handler\RequestContext.cs (3)
240var lspWorkspaceManager = lspServices.GetRequiredService<LspWorkspaceManager>(); 381return _lspServices.GetRequiredService<T>(); 386return _lspServices.GetRequiredService<T>();
Handler\RequestContextFactory.cs (3)
24var clientCapabilitiesManager = _lspServices.GetRequiredService<IInitializeManager>(); 26var logger = _lspServices.GetRequiredService<AbstractLspLogger>(); 27var serverInfoProvider = _lspServices.GetRequiredService<ServerInfoProvider>();
LspServices\TelemetryService.cs (1)
16var requestTelemetryLogger = lspServices.GetRequiredService<RequestTelemetryLogger>();
RoslynLanguageServer.cs (1)
103AddLazyService<LspMiscellaneousFilesWorkspace>(lspServices => lspServices.GetRequiredService<LspMiscellaneousFilesWorkspaceProvider>().CreateLspMiscellaneousFilesWorkspace(lspServices, hostServices));
RoslynRequestExecutionQueue.cs (1)
25_initializeManager = languageServer.GetLspServices().GetRequiredService<IInitializeManager>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (3)
257var lifeCycleManager = GetLspServices().GetRequiredService<ILifeCycleManager>(); 295var lifeCycleManager = lspServices.GetRequiredService<ILifeCycleManager>(); 351public T GetRequiredLspService<T>() where T : class => _server.GetLspServices().GetRequiredService<T>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (1)
101var requestContextFactory = LspServices.GetRequiredService<AbstractRequestContextFactory<TRequestContext>>();