Skip to content

Commit 257d26c

Browse files
remove Async suffixes
1 parent 86c5564 commit 257d26c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PowerShellEditorServices.Protocol/Server/DebugAdapter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ await requestContext.SendError(
471471
LogLevel.Error,
472472
$"Attach request failed, '{attachParams.RunspaceId}' is an invalid value for the processId.");
473473

474-
await requestContext.SendErrorAsync(
474+
await requestContext.SendError(
475475
"A positive integer must be specified for the RunspaceId field.");
476476

477477
return;

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ protected async Task HandleGetRunspaceRequestAsync(
12571257
psCommand.AddCommand("Get-Runspace");
12581258

12591259
StringBuilder sb = new StringBuilder();
1260-
IEnumerable<Runspace> runspaces = await editorSession.PowerShellContext.ExecuteCommandAsync<Runspace>(psCommand, sb);
1260+
IEnumerable<Runspace> runspaces = await editorSession.PowerShellContext.ExecuteCommand<Runspace>(psCommand, sb);
12611261
if (runspaces != null)
12621262
{
12631263
foreach (var p in runspaces)
@@ -1275,11 +1275,11 @@ protected async Task HandleGetRunspaceRequestAsync(
12751275
if (isNotCurrentProcess) {
12761276
var exitCommand = new PSCommand();
12771277
exitCommand.AddCommand("Exit-PSHostProcess");
1278-
await editorSession.PowerShellContext.ExecuteCommandAsync(exitCommand);
1278+
await editorSession.PowerShellContext.ExecuteCommand(exitCommand);
12791279
}
12801280
}
12811281

1282-
await requestContext.SendResultAsync(runspaceResponses.ToArray());
1282+
await requestContext.SendResult(runspaceResponses.ToArray());
12831283
}
12841284

12851285
private bool IsQueryMatch(string query, string symbolName)

0 commit comments

Comments
 (0)