Skip to content

Commit 71b554c

Browse files
cleanup
1 parent 5c7d668 commit 71b554c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Client/LanguageClientServiceCollectionExtensions.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal static IContainer AddLanguageClientInternals(this IContainer container,
2929
nonPublicServiceTypes: true,
3030
ifAlreadyRegistered: IfAlreadyRegistered.Keep
3131
);
32-
if (!EqualityComparer<OnUnhandledExceptionHandler?>.Default.Equals( options.OnUnhandledException, default))
32+
if (!EqualityComparer<OnUnhandledExceptionHandler?>.Default.Equals(options.OnUnhandledException, default))
3333
{
3434
container.RegisterInstance(options.OnUnhandledException);
3535
}
@@ -80,7 +80,7 @@ internal static IContainer AddLanguageClientInternals(this IContainer container,
8080

8181
if (providedConfiguration != null)
8282
{
83-
builder.CustomAddConfiguration((providedConfiguration.ImplementationInstance as IConfiguration)!);
83+
builder.CustomAddConfiguration(( providedConfiguration.ImplementationInstance as IConfiguration )!);
8484
}
8585

8686
//var didChangeConfigurationProvider = _.GetRequiredService<DidChangeConfigurationProvider>();
@@ -93,7 +93,7 @@ internal static IContainer AddLanguageClientInternals(this IContainer container,
9393

9494
container.RegisterMany<LanguageClientWorkDoneManager>(Reuse.Singleton);
9595
container.RegisterMany<LanguageClientWorkspaceFoldersManager>(
96-
serviceTypeCondition: type => options.WorkspaceFolders || type != typeof(IJsonRpcHandler), reuse: Reuse.Singleton
96+
serviceTypeCondition: type => options.WorkspaceFolders || type != typeof(IJsonRpcHandler), reuse: Reuse.Singleton
9797
);
9898
container.RegisterMany<LanguageClientRegistrationManager>(
9999
serviceTypeCondition: type => options.DynamicRegistration || type != typeof(IJsonRpcHandler), reuse: Reuse.Singleton

src/JsonRpc/JsonRpcHandlerCollectionExtensions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System;
21
using System.Collections.Generic;
32
using DryIoc;
43

0 commit comments

Comments
 (0)