Skip to content

Commit

Permalink
codacy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt committed Mar 5, 2019
1 parent 52b52b7 commit be5bf58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PowerShellEditorServices.Protocol/Server/DebugAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ await requestContext.SendErrorAsync(
}

// Clear any existing breakpoints before proceeding
await ClearSessionBreakpointsAsync();
await ClearSessionBreakpointsAsync().ConfigureAwait(false);

// Execute the Debug-Runspace command but don't await it because it
// will block the debug adapter initialization process. The
Expand All @@ -470,9 +470,9 @@ await requestContext.SendErrorAsync(
int runspaceId = attachParams.RunspaceId > 0 ? attachParams.RunspaceId : 1;
_waitingForAttach = true;
Task nonAwaitedTask =
_editorSession.PowerShellContext
.ExecuteScriptStringAsync($"\nDebug-Runspace -Id {runspaceId}")
.ContinueWith(OnExecutionCompletedAsync);
_editorSession.PowerShellContext
.ExecuteScriptStringAsync($"\nDebug-Runspace -Id {runspaceId}")
.ContinueWith(OnExecutionCompletedAsync);

await requestContext.SendResultAsync(null);
}
Expand Down

0 comments on commit be5bf58

Please sign in to comment.