1 implementation of ILspServices
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
LspServices\LspServices.cs (1)
19
internal sealed class LspServices :
ILspServices
, IMethodHandlerProvider
43 references to ILspServices
Microsoft.CodeAnalysis.LanguageServer.Protocol (43)
Handler\RequestContext.cs (3)
47
private readonly
ILspServices
_lspServices;
181
ILspServices
lspServices,
235
ILspServices
lspServices,
Handler\RequestContextFactory.cs (2)
15
private readonly
ILspServices
_lspServices;
17
public RequestContextFactory(
ILspServices
lspServices)
Handler\WorkspaceCommand\ExecuteWorkspaceCommandHandler.cs (2)
33
var
lspServices = context.GetRequiredService<
ILspServices
>();
LspServices\BaseService.cs (6)
16
public abstract object GetInstance(
ILspServices
lspServices);
22
public static BaseService CreateLazily<T>(Func<
ILspServices
, T> creator)
30
public override object GetInstance(
ILspServices
lspServices) => instance;
33
private sealed class LazyService<T>(Func<
ILspServices
, T> creator) : BaseService
37
private readonly Func<
ILspServices
, T> _creator = creator;
42
public override object GetInstance(
ILspServices
lspServices)
LspServices\LspServices.cs (2)
105
if (typeof(T) == typeof(
ILspServices
))
133
if (typeName == typeof(
ILspServices
).FullName)
LspServices\TelemetryService.cs (1)
14
public TelemetryService(
ILspServices
lspServices)
RoslynLanguageServer.cs (2)
58
protected override
ILspServices
ConstructLspServices()
120
void AddLazyService<T>(Func<
ILspServices
, T> creator)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (9)
29
private readonly Lazy<
ILspServices
> _lspServices;
68
_lspServices = new Lazy<
ILspServices
>(() => ConstructLspServices());
82
/// Extension point to allow creation of <see cref="
ILspServices
"/> since that can't always be handled in the constructor.
84
/// <returns>An <see cref="
ILspServices
"/> instance for this server.</returns>
86
protected abstract
ILspServices
ConstructLspServices();
92
var
lspServices = _lspServices.Value;
99
public
ILspServices
GetLspServices() => _lspServices.Value;
201
ILspServices
lspServices,
292
var
lspServices = GetLspServices();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractRequestContextFactory.cs (1)
20
/// It also allows somewhere to pass things like the <see cref="
ILspServices
" /> or <see cref="ILspLogger" /> which are useful on a wide variety of requests.
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (4)
17
internal class HandlerProvider(
ILspServices
lspServices, AbstractTypeRefResolver typeRefResolver) : AbstractHandlerProvider
19
private readonly
ILspServices
_lspServices = lspServices;
48
private static FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> CreateMethodToHandlerMap(
ILspServices
lspServices, AbstractTypeRefResolver typeRefResolver)
103
static Lazy<IMethodHandler> GetLazyHandlerFromTypeRef(
ILspServices
lspServices, AbstractTypeRefResolver typeRefResolver, TypeRef handlerTypeRef)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IMethodHandlerProvider.cs (1)
13
/// Optional interface that can be implemented by <see cref="
ILspServices
"/> implementations
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IQueueItem.cs (1)
50
ILspServices
LspServices { get; }
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IRequestExecutionQueue.cs (1)
25
Task<object?> ExecuteAsync(object? serializedRequest, string methodName,
ILspServices
lspServices, CancellationToken cancellationToken);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (3)
42
public
ILspServices
LspServices { get; }
51
ILspServices
lspServices,
72
ILspServices
lspServices,
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (3)
44
/// <see cref="ExecuteAsync(object?, string, Microsoft.CommonLanguageServerProtocol.Framework.
ILspServices
, CancellationToken)"/>
161
ILspServices
lspServices,
194
ILspServices
? lspServices = null;
Workspaces\LspMiscellaneousFilesWorkspace.cs (1)
28
internal sealed class LspMiscellaneousFilesWorkspace(
ILspServices
lspServices, IMetadataAsSourceFileService metadataAsSourceFileService, HostServices hostServices)
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
25
public LspMiscellaneousFilesWorkspace CreateLspMiscellaneousFilesWorkspace(
ILspServices
lspServices, HostServices hostServices)