Skip to content

Commit 3335b32

Browse files
committed
Use HostLoggerAdapter class for ILogger for better log message category
1 parent 9134c7d commit 3335b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Server/PsesLanguageServer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public async Task StartAsync()
131131
{
132132
// Wire up the HostLogger to the LanguageServer's logger once we are initialized, so that any messages still logged to the HostLogger get sent across the LSP channel. There is no more logging to disk at this point.
133133
hostLoggerSubscription = HostLogger.Subscribe(new HostLoggerAdapter(
134-
languageServer.Services.GetService<ILogger<HostLogger>>()
134+
languageServer.Services.GetService<ILogger<HostLoggerAdapter>>()
135135
));
136136

137137
// Set the workspace path from the parameters.

0 commit comments

Comments
 (0)