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(
193
193
InvokeExtensionCommandRequest commandDetails ,
194
194
RequestContext < string > requestContext )
195
195
{
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.
196
200
EditorContext editorContext =
197
201
this . editorOperations . ConvertClientEditorContext (
198
202
commandDetails . Context ) ;
@@ -207,7 +211,7 @@ private Task HandleInvokeExtensionCommandRequest(
207
211
return requestContext . SendResult ( null ) ;
208
212
} ) ;
209
213
210
- return commandTask ;
214
+ return Task . FromResult ( true ) ;
211
215
}
212
216
213
217
private async Task HandleExpandAliasRequest (
You can’t perform that action at this time.
0 commit comments