File tree 2 files changed +4
-4
lines changed
src/PowerShellEditorServices.Protocol/Server
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ await requestContext.SendError(
471
471
LogLevel . Error ,
472
472
$ "Attach request failed, '{ attachParams . RunspaceId } ' is an invalid value for the processId.") ;
473
473
474
- await requestContext . SendErrorAsync (
474
+ await requestContext . SendError (
475
475
"A positive integer must be specified for the RunspaceId field." ) ;
476
476
477
477
return ;
Original file line number Diff line number Diff line change @@ -1257,7 +1257,7 @@ protected async Task HandleGetRunspaceRequestAsync(
1257
1257
psCommand . AddCommand ( "Get-Runspace" ) ;
1258
1258
1259
1259
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 ) ;
1261
1261
if ( runspaces != null )
1262
1262
{
1263
1263
foreach ( var p in runspaces )
@@ -1275,11 +1275,11 @@ protected async Task HandleGetRunspaceRequestAsync(
1275
1275
if ( isNotCurrentProcess ) {
1276
1276
var exitCommand = new PSCommand ( ) ;
1277
1277
exitCommand . AddCommand ( "Exit-PSHostProcess" ) ;
1278
- await editorSession . PowerShellContext . ExecuteCommandAsync ( exitCommand ) ;
1278
+ await editorSession . PowerShellContext . ExecuteCommand ( exitCommand ) ;
1279
1279
}
1280
1280
}
1281
1281
1282
- await requestContext . SendResultAsync ( runspaceResponses . ToArray ( ) ) ;
1282
+ await requestContext . SendResult ( runspaceResponses . ToArray ( ) ) ;
1283
1283
}
1284
1284
1285
1285
private bool IsQueryMatch ( string query , string symbolName )
You can’t perform that action at this time.
0 commit comments