/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/LanguageServer/Protocol/Handler/Configuration/DidChangeConfigurationNotificationHandlerFactory.cs
32 строки
1 KB
David Barbet
Refactor LSP server logging to remove singleton lsp instance (#84001)
16 июн 2026, 05:04
Не верифицирован
16 июн 2026, 05:04
82e81e5
Код
Авторство
О чём код?
// 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.CommonLanguageServerProtocol.Framework; namespace Microsoft.CodeAnalysis.LanguageServer.Handler.Configuration; [ExportCSharpVisualBasicLspServiceFactory(typeof(DidChangeConfigurationNotificationHandler)), Shared] internal sealed class DidChangeConfigurationNotificationHandlerFactory : ILspServiceFactory { private readonly IGlobalOptionService _globalOptionService; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public DidChangeConfigurationNotificationHandlerFactory( IGlobalOptionService globalOptionService) { _globalOptionService = globalOptionService; } public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind) { var clientManager = lspServices.GetRequiredService<IClientLanguageServerManager>(); var lspLogger = lspServices.GetRequiredService<ILspLogger>(); return new DidChangeConfigurationNotificationHandler(lspLogger, _globalOptionService, clientManager); } }