1 implementation of ILspServices
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
LspServices\LspServices.cs (1)
19internal sealed class LspServices : ILspServices, IMethodHandlerProvider
43 references to ILspServices
Microsoft.CodeAnalysis.LanguageServer.Protocol (43)
Handler\RequestContext.cs (3)
47private readonly ILspServices _lspServices; 181ILspServices lspServices, 235ILspServices lspServices,
Handler\RequestContextFactory.cs (2)
15private readonly ILspServices _lspServices; 17public RequestContextFactory(ILspServices lspServices)
Handler\WorkspaceCommand\ExecuteWorkspaceCommandHandler.cs (2)
33var lspServices = context.GetRequiredService<ILspServices>();
LspServices\BaseService.cs (6)
16public abstract object GetInstance(ILspServices lspServices); 22public static BaseService CreateLazily<T>(Func<ILspServices, T> creator) 30public override object GetInstance(ILspServices lspServices) => instance; 33private sealed class LazyService<T>(Func<ILspServices, T> creator) : BaseService 37private readonly Func<ILspServices, T> _creator = creator; 42public override object GetInstance(ILspServices lspServices)
LspServices\LspServices.cs (2)
105if (typeof(T) == typeof(ILspServices)) 133if (typeName == typeof(ILspServices).FullName)
LspServices\TelemetryService.cs (1)
14public TelemetryService(ILspServices lspServices)
RoslynLanguageServer.cs (2)
58protected override ILspServices ConstructLspServices() 120void AddLazyService<T>(Func<ILspServices, T> creator)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (9)
29private 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> 86protected abstract ILspServices ConstructLspServices(); 92var lspServices = _lspServices.Value; 99public ILspServices GetLspServices() => _lspServices.Value; 201ILspServices lspServices, 292var 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)
17internal class HandlerProvider(ILspServices lspServices, AbstractTypeRefResolver typeRefResolver) : AbstractHandlerProvider 19private readonly ILspServices _lspServices = lspServices; 48private static FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> CreateMethodToHandlerMap(ILspServices lspServices, AbstractTypeRefResolver typeRefResolver) 103static 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)
50ILspServices LspServices { get; }
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IRequestExecutionQueue.cs (1)
25Task<object?> ExecuteAsync(object? serializedRequest, string methodName, ILspServices lspServices, CancellationToken cancellationToken);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (3)
42public ILspServices LspServices { get; } 51ILspServices lspServices, 72ILspServices lspServices,
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (3)
44/// <see cref="ExecuteAsync(object?, string, Microsoft.CommonLanguageServerProtocol.Framework.ILspServices, CancellationToken)"/> 161ILspServices lspServices, 194ILspServices? lspServices = null;
Workspaces\LspMiscellaneousFilesWorkspace.cs (1)
28internal sealed class LspMiscellaneousFilesWorkspace(ILspServices lspServices, IMetadataAsSourceFileService metadataAsSourceFileService, HostServices hostServices)
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
25public LspMiscellaneousFilesWorkspace CreateLspMiscellaneousFilesWorkspace(ILspServices lspServices, HostServices hostServices)