File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/PowerShellEditorServices.Protocol/Server Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments