Skip to content

Commit 1d79002

Browse files
committed
Use runspace rather than dynamic.
1 parent cbe5b18 commit 1d79002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1232,10 +1232,10 @@ protected async Task HandleGetRunspaceRequestAsync(
12321232
var psCommand = new PSCommand();
12331233
psCommand.AddCommand("Get-Runspace");
12341234

1235-
var runspaces = await editorSession.PowerShellContext.ExecuteCommandAsync<PSObject>(psCommand);
1235+
IEnumerable<Runspace> runspaces = await editorSession.PowerShellContext.ExecuteCommandAsync<Runspace>(psCommand);
12361236
if (runspaces != null)
12371237
{
1238-
foreach (dynamic p in runspaces)
1238+
foreach (var p in runspaces)
12391239
{
12401240
runspaceResponses.Add(
12411241
new GetRunspaceResponse

0 commit comments

Comments
 (0)