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