14 interfaces inheriting from ILspService
Microsoft.CodeAnalysis.EditorFeatures (1)
ExternalAccess\VSTypeScript\Api\AbstractVSTypeScriptRequestHandler.cs (1)
69internal interface IVSTypeScriptRequestHandler : ILspService
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Cohost\IRazorSemanticTokensRefreshQueue.cs (1)
11internal interface IRazorSemanticTokensRefreshQueue : ILspService
IRazorClientLanguageServerManager.cs (1)
11internal interface IRazorClientLanguageServerManager : ILspService
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Handler\IInitializeManager.cs (1)
9internal interface IInitializeManager : ILspService
Handler\ILspServiceNotificationHandler.cs (2)
10ILspService, 17ILspService,
Handler\ILspServiceRequestHandler.cs (2)
14ILspService, 24ILspService,
ICapabilitiesProvider.cs (1)
9internal interface ICapabilitiesProvider : ILspService
IClientLanguageServerManager.cs (1)
15internal interface IClientLanguageServerManager : ILspService
ILanguageInfoProvider.cs (1)
14internal interface ILanguageInfoProvider : ILspService
IRequestExecutionQueueProvider.cs (1)
9internal interface IRequestExecutionQueueProvider<RequestContext> : ILspService
Workspaces\ILspMiscellaneousFilesWorkspaceProvider.cs (1)
20internal interface ILspMiscellaneousFilesWorkspaceProvider : ILspService
Workspaces\ILspMiscellaneousFilesWorkspaceProviderFactory.cs (1)
10internal interface ILspMiscellaneousFilesWorkspaceProviderFactory : ILspService
25 implementations of ILspService
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (4)
AbstractRazorLspService.cs (1)
9internal abstract class AbstractRazorLspService : ILspService
Cohost\AbstractRazorLspService.cs (1)
13internal abstract class AbstractRazorLspService : ILspService
Cohost\RazorConfigurationChangedServiceFactory.cs (1)
27Lazy<ICohostConfigurationChangedService>? cohostConfigurationChangedService) : ILspService, IOnConfigurationChanged
Cohost\RazorStartupServiceFactory.cs (1)
34Lazy<ICohostStartupService>? cohostStartupService) : ILspService, IOnInitialized, IDisposable
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Internal\OnInitializedServiceFactory.cs (1)
40private class OnInitializedService : ILspService, IOnInitialized
Microsoft.CodeAnalysis.LanguageServer (4)
HostWorkspace\Razor\RazorDynamicFileInfoProvider.cs (1)
22internal sealed partial class RazorDynamicFileInfoProvider(Lazy<LanguageServerWorkspaceFactory> workspaceFactory, ILoggerFactory loggerFactory) : IDynamicFileInfoProvider, ILspService, IOnInitialized, IDisposable
HostWorkspace\Razor\RazorInitializer.cs (1)
18internal sealed class RazorInitializer(Lazy<LanguageServerWorkspaceFactory> workspaceFactory, [Import(AllowDefault = true)] ITelemetryReporter? telemetryReporter) : ILspService, IOnInitialized
LanguageServer\RazorDynamicDocumentSyncRegistration.cs (1)
22public sealed class OnInitialized(IGlobalOptionService globalOptionService) : IOnInitialized, ILspService
Logging\LspServiceLogger.cs (1)
13internal sealed class LspServiceLogger : AbstractLspLogger, ILspService
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Handler\AbstractRefreshQueue.cs (1)
21ILspService,
Handler\RequestContextFactory.cs (1)
13internal sealed class RequestContextFactory : AbstractRequestContextFactory<RequestContext>, ILspService
Handler\ResolveCache.cs (1)
19internal abstract class ResolveCache<TCacheEntry> : ILspService where TCacheEntry : class
Handler\ServerLifetime\LspServiceLifeCycleManager.cs (1)
18internal sealed class LspServiceLifeCycleManager : ILifeCycleManager, ILspService
Handler\SourceGenerators\SourceGeneratedDocumentCache.cs (1)
17internal sealed class SourceGeneratedDocumentCache(string uniqueKey) : VersionedPullCache<(SourceGeneratorExecutionVersion, VersionStamp), SourceGeneratedDocumentGetTextState, SourceText?>(uniqueKey), ILspService
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
20ILspService,
Handler\Telemetry\RequestTelemetryLogger.cs (1)
15internal class RequestTelemetryLogger : IDisposable, ILspService
LspServices\TelemetryService.cs (1)
10internal sealed class TelemetryService : AbstractTelemetryService, ILspService
NoOpLspLogger.cs (1)
10internal sealed class NoOpLspLogger : AbstractLspLogger, ILspService
Workspaces\LspWorkspaceManager.cs (1)
47internal sealed class LspWorkspaceManager : IDocumentChangeTracker, ILspService
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
LanguageServerTargetTests.cs (2)
158internal sealed class StatefulLspService : ILspService, IDisposable 168internal sealed class StatelessLspService : ILspService, IDisposable
LspServicesTests.cs (2)
87internal class TestLspService : ILspService { } 89internal sealed record class TestLspServiceFromFactory(string FactoryName) : ILspService { }
Microsoft.VisualStudio.LanguageServices (1)
LanguageClient\LogHubLspLogger.cs (1)
14internal sealed class LogHubLspLogger : AbstractLspLogger, ILspService
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\XamlRequestExecutionQueue.cs (1)
12internal sealed class XamlRequestExecutionQueue : RequestExecutionQueue<RequestContext>, ILspService
60 references to ILspService
Microsoft.CodeAnalysis.EditorFeatures (2)
ExternalAccess\VSTypeScript\Api\AbstactVSTypeScriptLspServiceFactory.cs (1)
11public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
ExternalAccess\VSTypeScript\VSTypeScriptLspServiceProvider.cs (1)
17[ImportMany(ProtocolConstants.TypeScriptLanguageContract)] IEnumerable<Lazy<ILspService, LspServiceMetadataView>> lspServices,
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (6)
AbstractRazorLspServiceFactory.cs (1)
14public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Cohost\AbstractRazorLspService.cs (1)
11/// since those services must implement <see cref="ILspService"/> but the Razor code doesn't have IVT to it.
Cohost\RazorClientLanguageServerManagerFactory.cs (1)
18public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Cohost\RazorConfigurationChangedServiceFactory.cs (1)
21public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Cohost\RazorSemanticTokensRefreshQueueWrapper.cs (1)
23public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Cohost\RazorStartupServiceFactory.cs (1)
27public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (2)
External\XamlRequestHandlerFactoryBase.cs (1)
22public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Internal\OnInitializedServiceFactory.cs (1)
33public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\Razor\RazorClientLanguageServerManagerFactory.cs (1)
17public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
LanguageServer\LanguageServerHost.cs (1)
72public T GetRequiredLspService<T>() where T : ILspService
LanguageServer\RazorDynamicDocumentSyncRegistration.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.LanguageServer.Protocol (42)
Handler\CodeLens\CodeLensRefreshQueueFactory.cs (1)
32public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Completion\CompletionListCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new CompletionListCache();
Handler\Configuration\DidChangeConfigurationNotificationHandlerFactory.cs (1)
26public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\DiagnosticsRefreshQueue.cs (1)
35public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\DocumentPullDiagnosticHandlerFactory.cs (1)
22public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticHandlerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticHandlerFactory.cs (1)
23public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Diagnostics\WorkspacePullDiagnosticHandlerFactory.cs (1)
23public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\InlayHint\InlayHintCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new InlayHintCache();
Handler\InlayHint\InlayHintRefreshQueueFactory.cs (1)
32public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\RelatedDocuments\RelatedDocumentsHandler.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\RequestContext.cs (2)
354public T GetRequiredLspService<T>() where T : class, ILspService 369public T? GetService<T>() where T : class, ILspService
Handler\ResolveDataCacheFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensFullHandlerFactory.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRangeHandlerFactory.cs (1)
25public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRangesHandlerFactory.cs (1)
26public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SemanticTokens\SemanticTokensRefreshQueueFactory.cs (1)
28public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\ServerLifetime\LspServiceLifeCycleManager.cs (1)
28public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SourceGenerators\SourceGeneratedDocumentCache.cs (1)
52public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SourceGenerators\SourceGeneratorRefreshQueueFactory.cs (1)
19public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SpellCheck\DocumentSpellCheckHandlerFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\SpellCheck\WorkspaceSpellCheckHandlerFactory.cs (1)
20public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Handler\Telemetry\RequestTelemetryLoggerFactory.cs (1)
16public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
LspServices\AbstractExportLspServiceAttribute.cs (3)
38/// Services MEF exported as <see cref="ILspService"/> must by definition be stateless as they are 60Contract.ThrowIfFalse(serviceType.GetInterfaces().Contains(typeof(ILspService)), $"{serviceType.Name} does not inherit from {nameof(ILspService)}");
LspServices\AbstractLspServiceProvider.cs (2)
13IEnumerable<Lazy<ILspService, LspServiceMetadataView>> specificLspServices, 16private readonly ImmutableArray<Lazy<ILspService, LspServiceMetadataView>> _lspServices = [.. specificLspServices];
LspServices\ExportLspServiceFactoryAttribute.cs (1)
12/// to create new instances of the <see cref="ILspService"/> each time an LSP server is started.
LspServices\ExportStatelessLspServiceAttribute.cs (2)
11/// Defines an attribute to export an instance of <see cref="ILspService"/> that is re-used across 21serviceType, contractName, contractType: typeof(ILspService), isStateless: true, serverKind);
LspServices\ILspServiceFactory.cs (2)
11/// need to know about other <see cref="ILspService"/> instances to be constructed. 13ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind);
LspServices\LspServices.cs (6)
20private readonly FrozenDictionary<string, Lazy<ILspService, LspServiceMetadataView>> _lazyMefLspServices; 36ImmutableArray<Lazy<ILspService, LspServiceMetadataView>> mefLspServices, 41var serviceMap = new Dictionary<string, Lazy<ILspService, LspServiceMetadataView>>(); 63void AddSpecificService(Lazy<ILspService, LspServiceMetadataView> serviceGetter) 70void TryAddAnyService(Lazy<ILspService, LspServiceMetadataView> serviceGetter) 154var lspService = lazyService.Value;
LspServices\RoslynLspServiceProvider.cs (1)
16[ImportMany(ProtocolConstants.RoslynLspLanguagesContract)] IEnumerable<Lazy<ILspService, LspServiceMetadataView>> lspServices,
Workspaces\LspWorkspaceManagerFactory.cs (1)
18public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
HandlerTests.cs (2)
388public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) 418public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
LanguageServerTargetTests.cs (1)
155public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new StatefulLspService();
LspServicesTests.cs (1)
93public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) => new TestLspServiceFromFactory(this.GetType().Name);
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\XamlLspServiceProvider.cs (1)
20[ImportMany(StringConstants.XamlLspLanguagesContract)] IEnumerable<Lazy<ILspService, LspServiceMetadataView>> lspServices,