Commit 23fa4bf
authored
In PSCore RemoteSessionStateProxy.InvokeCommand throws PSNotImpemente… (#576)
* In PSCore RemoteSessionStateProxy.InvokeCommand throws PSNotImpementedException
Fixes #1091 - I think. Well, at least the initial layer of the onion. Not sure what else we'll run into connecting to PS Core as the remote. I don't have a setup for testing that atm.
Probably don't want to crash the extension if we can get aliases when the remote is PS Core.
See https://github.com/PowerShell/PowerShell/blob/4bc52d2358222084738157a08907fac32d13bd3a/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs#L2982-L2988
* Set areAliasesLoaded to true to prevent more calls to GetAliases
Do this when we receive a PSNotSupportedException trying to get aliases from the (remote) session.1 parent e19ab6f commit 23fa4bf
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
699 | 698 | | |
700 | 699 | | |
701 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
702 | 710 | | |
703 | 711 | | |
704 | 712 | | |
| |||
0 commit comments