Skip to content

Commit

Permalink
Rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
dibarbet committed May 17, 2022
1 parent 8d52635 commit cdd475e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public VSTypeScriptInProcLanguageClient(
VSTypeScriptLspServiceProvider lspServiceProvider,
IGlobalOptionService globalOptions,
IAsynchronousOperationListenerProvider listenerProvider,
DefaultCapabilitiesProvider defaultCapabilitiesProvider,
AllSupportedCapabilitiesProvider defaultCapabilitiesProvider,
ILspLoggerFactory lspLoggerFactory,
IThreadingContext threadingContext)
: base(lspServiceProvider, globalOptions, listenerProvider, lspLoggerFactory, threadingContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.LanguageClient
[Export(typeof(AlwaysActivateInProcLanguageClient))]
internal class AlwaysActivateInProcLanguageClient : AbstractInProcLanguageClient
{
private readonly DefaultCapabilitiesProvider _defaultCapabilitiesProvider;
private readonly AllSupportedCapabilitiesProvider _defaultCapabilitiesProvider;

[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, true)]
public AlwaysActivateInProcLanguageClient(
CSharpVisualBasicLspServiceProvider lspServiceProvider,
IGlobalOptionService globalOptions,
IAsynchronousOperationListenerProvider listenerProvider,
DefaultCapabilitiesProvider defaultCapabilitiesProvider,
AllSupportedCapabilitiesProvider defaultCapabilitiesProvider,
ILspLoggerFactory lspLoggerFactory,
IThreadingContext threadingContext)
: base(lspServiceProvider, globalOptions, listenerProvider, lspLoggerFactory, threadingContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.LanguageClient
[Export(typeof(ILanguageClient))]
internal class LiveShareInProcLanguageClient : AbstractInProcLanguageClient
{
private readonly DefaultCapabilitiesProvider _defaultCapabilitiesProvider;
private readonly AllSupportedCapabilitiesProvider _defaultCapabilitiesProvider;

[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, true)]
public LiveShareInProcLanguageClient(
CSharpVisualBasicLspServiceProvider lspServiceProvider,
IGlobalOptionService globalOptions,
IAsynchronousOperationListenerProvider listenerProvider,
DefaultCapabilitiesProvider defaultCapabilitiesProvider,
AllSupportedCapabilitiesProvider defaultCapabilitiesProvider,
ILspLoggerFactory lspLoggerFactory,
IThreadingContext threadingContext)
: base(lspServiceProvider, globalOptions, listenerProvider, lspLoggerFactory, threadingContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal class RazorInProcLanguageClient : AbstractInProcLanguageClient
{
public const string ClientName = ProtocolConstants.RazorCSharp;

private readonly DefaultCapabilitiesProvider _defaultCapabilitiesProvider;
private readonly AllSupportedCapabilitiesProvider _defaultCapabilitiesProvider;

protected override ImmutableArray<string> SupportedLanguages => ProtocolConstants.RoslynLspLanguages;

Expand All @@ -50,7 +50,7 @@ public RazorInProcLanguageClient(
CSharpVisualBasicLspServiceProvider lspServiceProvider,
IGlobalOptionService globalOptions,
IAsynchronousOperationListenerProvider listenerProvider,
DefaultCapabilitiesProvider defaultCapabilitiesProvider,
AllSupportedCapabilitiesProvider defaultCapabilitiesProvider,
IThreadingContext threadingContext,
ILspLoggerFactory lspLoggerFactory,
[Import(AllowDefault = true)] AbstractLanguageClientMiddleLayer middleLayer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ internal static async Task<TestLspServer> CreateAsync(TestWorkspace testWorkspac
private static LanguageServerTarget CreateLanguageServer(Stream inputStream, Stream outputStream, TestWorkspace workspace, WellKnownLspServerKinds serverKind)
{
var listenerProvider = workspace.ExportProvider.GetExportedValue<IAsynchronousOperationListenerProvider>();
var capabilitiesProvider = workspace.ExportProvider.GetExportedValue<DefaultCapabilitiesProvider>();
var capabilitiesProvider = workspace.ExportProvider.GetExportedValue<AllSupportedCapabilitiesProvider>();
var servicesProvider = workspace.ExportProvider.GetExportedValue<CSharpVisualBasicLspServiceProvider>();

var jsonRpc = new JsonRpc(new HeaderDelimitedMessageHandler(outputStream, inputStream, CreateJsonMessageFormatter()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

namespace Microsoft.CodeAnalysis.LanguageServer
{
[Export(typeof(DefaultCapabilitiesProvider)), Shared]
internal class DefaultCapabilitiesProvider : ICapabilitiesProvider
[Export(typeof(AllSupportedCapabilitiesProvider)), Shared]
internal class AllSupportedCapabilitiesProvider : ICapabilitiesProvider
{
private readonly ImmutableArray<Lazy<CompletionProvider, CompletionProviderMetadata>> _completionProviders;

[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
public DefaultCapabilitiesProvider(
public AllSupportedCapabilitiesProvider(
[ImportMany] IEnumerable<Lazy<CompletionProvider, CompletionProviderMetadata>> completionProviders)
{
_completionProviders = completionProviders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private async Task<TestLspServer> CreateTsTestLspServerAsync(string workspaceXml
private static LanguageServerTarget CreateLanguageServer(Stream inputStream, Stream outputStream, TestWorkspace workspace)
{
var listenerProvider = workspace.ExportProvider.GetExportedValue<IAsynchronousOperationListenerProvider>();
var capabilitiesProvider = workspace.ExportProvider.GetExportedValue<DefaultCapabilitiesProvider>();
var capabilitiesProvider = workspace.ExportProvider.GetExportedValue<AllSupportedCapabilitiesProvider>();
var servicesProvider = workspace.ExportProvider.GetExportedValue<VSTypeScriptLspServiceProvider>();

var jsonRpc = new JsonRpc(new HeaderDelimitedMessageHandler(outputStream, inputStream))
Expand Down

0 comments on commit cdd475e

Please sign in to comment.