Skip to content

Commit 5e6f755

Browse files
committed
Improved code comments.
1 parent e2688a8 commit 5e6f755

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/PowerShellEditorServices.Protocol/Server/DebugAdapter.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected async Task HandleConfigurationDoneRequest(
106106
RequestContext<object> requestContext)
107107
{
108108
// Ensure that only the second message between launch and
109-
// configurationDone - actually launches the script.
109+
// configurationDone requests, actually launches the script.
110110
lock (syncLock)
111111
{
112112
if (!this.isLaunchRequestComplete)
@@ -116,8 +116,8 @@ protected async Task HandleConfigurationDoneRequest(
116116
}
117117

118118
// The order of debug protocol messages apparently isn't as guaranteed as we might like.
119-
// Need to be able to handle the case where we get configurationDone after launch request
120-
// and vice-versa.
119+
// Need to be able to handle the case where we get the configurationDone request after the
120+
// launch request.
121121
if (this.isLaunchRequestComplete)
122122
{
123123
this.LaunchScript(requestContext);
@@ -162,13 +162,13 @@ protected async Task HandleLaunchRequest(
162162
// We may not actually launch the script in response to this
163163
// request unless it comes after the configurationDone request.
164164
// If the launch request comes first, then stash the launch
165-
// params so that the subsequent configurationDone request can
166-
// launch the script.
165+
// params so that the subsequent configurationDone request handler
166+
// can launch the script.
167167
this.scriptPathToLaunch = launchParams.Program;
168168
this.arguments = arguments;
169169

170170
// Ensure that only the second message between launch and
171-
// configurationDone - actually launches the script.
171+
// configurationDone requests, actually launches the script.
172172
lock (syncLock)
173173
{
174174
if (!this.isConfigurationDoneRequestComplete)
@@ -178,8 +178,8 @@ protected async Task HandleLaunchRequest(
178178
}
179179

180180
// The order of debug protocol messages apparently isn't as guaranteed as we might like.
181-
// Need to be able to handle the case where we get configurationDone after launch request
182-
// and vice-versa.
181+
// Need to be able to handle the case where we get the launch request after the
182+
// configurationDone request.
183183
if (this.isConfigurationDoneRequestComplete)
184184
{
185185
this.LaunchScript(requestContext);

0 commit comments

Comments
 (0)