|
// 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;
namespace Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens;
[ExportCSharpVisualBasicLspServiceFactory(typeof(CodeLensResolveHandler)), Shared]
internal sealed class CodeLensResolveHandlerFactory : ILspServiceFactory
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public CodeLensResolveHandlerFactory()
{
}
public ILspService CreateILspService(LspServices lspServices, WellKnownLspServerKinds serverKind)
{
var completionListCache = lspServices.GetRequiredService<CodeLensCache>();
return new CodeLensResolveHandler(completionListCache);
}
}
|