Skip to content

Commit dca0f2d

Browse files
committed
Merge pull request #204 from rkeithhill/rkeithhill/is196-dbgr-fails-to-start
Fixes #196 - reorder messages to prevent dbgr fail to start
2 parents c327284 + 46b0c67 commit dca0f2d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/PowerShellEditorServices.Protocol/Server/DebugAdapterBase.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,18 @@ private async Task HandleInitializeRequest(
5454
object shutdownParams,
5555
RequestContext<InitializeResponseBody> requestContext)
5656
{
57-
// Send the Initialized event first so that we get breakpoints
58-
await requestContext.SendEvent(
59-
InitializedEvent.Type,
60-
null);
61-
6257
// Now send the Initialize response to continue setup
6358
await requestContext.SendResult(
64-
new InitializeResponseBody
65-
{
59+
new InitializeResponseBody {
6660
SupportsConfigurationDoneRequest = true,
6761
SupportsConditionalBreakpoints = true,
6862
SupportsFunctionBreakpoints = true
6963
});
64+
65+
// Send the Initialized event so that we get breakpoints
66+
await requestContext.SendEvent(
67+
InitializedEvent.Type,
68+
null);
7069
}
7170
}
7271
}
73-

0 commit comments

Comments
 (0)