We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe5b18 commit 1d79002Copy full SHA for 1d79002
src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs
@@ -1232,10 +1232,10 @@ protected async Task HandleGetRunspaceRequestAsync(
1232
var psCommand = new PSCommand();
1233
psCommand.AddCommand("Get-Runspace");
1234
1235
- var runspaces = await editorSession.PowerShellContext.ExecuteCommandAsync<PSObject>(psCommand);
+ IEnumerable<Runspace> runspaces = await editorSession.PowerShellContext.ExecuteCommandAsync<Runspace>(psCommand);
1236
if (runspaces != null)
1237
{
1238
- foreach (dynamic p in runspaces)
+ foreach (var p in runspaces)
1239
1240
runspaceResponses.Add(
1241
new GetRunspaceResponse
0 commit comments