/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/Handler/InlayHint/InlayHintRefreshQueueFactory.cs
29 строк
1 KB
David Barbet
Make LspWorkspaceRegistrationService a lsp service
13 май 2026, 02:23
13 май 2026, 02:23
0198aff
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Shared.TestHooks; namespace Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint; [ExportCSharpVisualBasicLspServiceFactory(typeof(InlayHintRefreshQueue)), Shared] [method: ImportingConstructor] [method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] internal sealed class InlayHintRefreshQueueFactory( IAsynchronousOperationListenerProvider asynchronousOperationListenerProvider, IGlobalOptionService globalOptionService, FeatureProviderRefresher providerRefresher) : ILspServiceFactory { public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) { var notificationManager = lspServices.GetRequiredService<IClientLanguageServerManager>(); var lspWorkspaceManager = lspServices.GetRequiredService<LspWorkspaceManager>(); var lspWorkspaceRegistrationService = lspServices.GetRequiredService<LspWorkspaceRegistrationService>(); return new InlayHintRefreshQueue(asynchronousOperationListenerProvider, lspWorkspaceRegistrationService, globalOptionService, lspWorkspaceManager, notificationManager, providerRefresher); } }