Skip to content

Commit 7bc0347

Browse files
committed
Remove LanguageServerLogging from DebugAdapter factory
1 parent 557ddbe commit 7bc0347

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/PowerShellEditorServices/Hosting/EditorServicesServerFactory.cs

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using Microsoft.PowerShell.EditorServices.Server;
99
using OmniSharp.Extensions.LanguageServer.Protocol.Server;
1010
using Microsoft.PowerShell.EditorServices.Services.Extension;
11-
using OmniSharp.Extensions.LanguageServer.Server;
1211

1312
// The HostLogger type isn't directly referenced from this assembly, however it uses a common IObservable interface and this alias helps make it more clear the purpose. We can use Microsoft.Extensions.Logging from this point because the ALC should be loaded, but we need to only expose the IObservable to the Hosting assembly so it doesn't try to load MEL before the ALC is ready.
1413
using HostLogger = System.IObservable<(int logLevel, string message)>;
@@ -103,7 +102,6 @@ public PsesDebugServer CreateDebugServerForTempSession(
103102
ServiceProvider serviceProvider = new ServiceCollection()
104103
.AddLogging(builder => builder
105104
.ClearProviders()
106-
.AddLanguageProtocolLogging()
107105
.SetMinimumLevel(LogLevel.Trace)) // TODO: Why randomly set to trace?
108106
.AddSingleton<ILanguageServerFacade>(_ => null)
109107
// TODO: Why add these for a debug server?!

0 commit comments

Comments
 (0)