File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/PowerShellEditorServices.Protocol/Server Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,10 @@ private Task HandleInvokeExtensionCommandRequest(
193193 InvokeExtensionCommandRequest commandDetails ,
194194 RequestContext < string > requestContext )
195195 {
196+ // We don't await the result of the execution here because we want
197+ // to be able to receive further messages while the editor command
198+ // is executing. This important in cases where the pipeline thread
199+ // gets blocked by something in the script like a prompt to the user.
196200 EditorContext editorContext =
197201 this . editorOperations . ConvertClientEditorContext (
198202 commandDetails . Context ) ;
@@ -207,7 +211,7 @@ private Task HandleInvokeExtensionCommandRequest(
207211 return requestContext . SendResult ( null ) ;
208212 } ) ;
209213
210- return commandTask ;
214+ return Task . FromResult ( true ) ;
211215 }
212216
213217 private async Task HandleExpandAliasRequest (
You can’t perform that action at this time.
0 commit comments