1 implementation of ILspServices
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
LspServices\LspServices.cs (1)
18
internal sealed class LspServices :
ILspServices
, IMethodHandlerProvider
46 references to ILspServices
Microsoft.CodeAnalysis.LanguageServer.Protocol (46)
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)
104
if (typeof(T) == typeof(
ILspServices
))
132
if (typeName == typeof(
ILspServices
).FullName)
LspServices\TelemetryService.cs (1)
14
public TelemetryService(
ILspServices
lspServices)
RoslynLanguageServer.cs (2)
57
protected override
ILspServices
ConstructLspServices()
118
void AddLazyService<T>(Func<
ILspServices
, T> creator)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (9)
30
private readonly Lazy<
ILspServices
> _lspServices;
73
_lspServices = new Lazy<
ILspServices
>(() => ConstructLspServices());
77
var
lspServices = _lspServices.Value;
94
/// Extension point to allow creation of <see cref="
ILspServices
"/> since that can't always be handled in the constructor.
96
/// <returns>An <see cref="
ILspServices
"/> instance for this server.</returns>
98
protected abstract
ILspServices
ConstructLspServices();
108
public
ILspServices
GetLspServices() => _lspServices.Value;
210
ILspServices
lspServices,
301
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 sealed 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)
49
ILspServices
LspServices { get; }
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\IRequestExecutionQueue.cs (1)
24
Task<object?> ExecuteAsync(object? serializedRequest, string methodName,
ILspServices
lspServices, CancellationToken cancellationToken);
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\NewtonsoftLanguageServer.cs (1)
77
var
lspServices = target.GetLspServices();
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)
42
/// <see cref="ExecuteAsync(object?, string, Microsoft.CommonLanguageServerProtocol.Framework.
ILspServices
, CancellationToken)"/>
159
ILspServices
lspServices,
192
ILspServices
? lspServices = null;
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\SystemTextJsonLanguageServer.cs (1)
85
var
lspServices = target.GetLspServices();
Workspaces\ILspMiscellaneousFilesWorkspaceProviderFactory.cs (1)
12
ILspMiscellaneousFilesWorkspaceProvider CreateLspMiscellaneousFilesWorkspaceProvider(
ILspServices
lspServices, HostServices hostServices);
Workspaces\LspMiscellaneousFilesWorkspaceProvider.cs (1)
29
internal sealed class LspMiscellaneousFilesWorkspaceProvider(
ILspServices
lspServices, IMetadataAsSourceFileService metadataAsSourceFileService, HostServices hostServices)
Workspaces\LspMiscellaneousFilesWorkspaceProviderFactory.cs (1)
25
public ILspMiscellaneousFilesWorkspaceProvider CreateLspMiscellaneousFilesWorkspaceProvider(
ILspServices
lspServices, HostServices hostServices)