Skip to content

Commit

Permalink
Fix LanguageServerHost.cs after Omnisharp.Extensions.LS upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
razzmatazz committed May 9, 2020
1 parent 61a91eb commit f978084
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/OmniSharp.LanguageServerProtocol/LanguageServerHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using OmniSharp.LanguageServerProtocol.Eventing;
using OmniSharp.LanguageServerProtocol.Handlers;
using OmniSharp.Mef;
using OmniSharp.Models.Diagnostics;
using OmniSharp.Options;
using OmniSharp.Roslyn;
using OmniSharp.Services;
Expand Down Expand Up @@ -49,11 +48,16 @@ public LanguageServerHost(
_options = new LanguageServerOptions()
.WithInput(input)
.WithOutput(output)
.WithLoggerFactory(_loggerFactory)
.ConfigureLogging(x => x
.AddLanguageServer()
.SetMinimumLevel(application.LogLevel))
.AddDefaultLoggingProvider()
.OnInitialize(Initialize)
.WithMinimumLogLevel(application.LogLevel)
.WithServices(services => _services = services);
.WithServices(services => {
services.AddSingleton<ILoggerFactory>(_loggerFactory);
_services = services;
});

_application = application;
_cancellationTokenSource = cancellationTokenSource;
}
Expand Down

0 comments on commit f978084

Please sign in to comment.