Skip to content

Commit 9785999

Browse files
committed
Add separate log file for debugging service
This change adds a new log file for the debugging service called "DebugService.log". This log file will be taken back out once we have the debugging service running in the same process as the language service.
1 parent 82bc081 commit 9785999

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/PowerShellEditorServices.Transport.Stdio/Request/InitializeRequest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Event;
33
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
44
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
5+
using Microsoft.PowerShell.EditorServices.Utility;
56
using Nito.AsyncEx;
67
using System.Threading.Tasks;
78

@@ -14,6 +15,12 @@ public override async Task ProcessMessage(
1415
EditorSession editorSession,
1516
MessageWriter messageWriter)
1617
{
18+
// TODO: Remove this behavior in the near future --
19+
// Create the debug service log in a separate file
20+
// so that there isn't a conflict with the default
21+
// log file.
22+
Logger.Initialize("DebugService.log", LogLevel.Verbose);
23+
1724
// Send the Initialized event first so that we get breakpoints
1825
await messageWriter.WriteMessage(
1926
new InitializedEvent());

0 commit comments

Comments
 (0)