Aditya Patwardhan
d99626927d
Update Get-Error test to not depend on DNS APIs ( #17471 )
2022-06-03 09:25:24 -07:00
Andrew Menagarishvili
3f1c03d494
Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
...
Cherry picked from !18333
Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Steve Lee
a162856af5
Change default to OutputRendering.Host and remove OutputRendering.Automatic ( #15882 )
2021-08-16 14:17:07 -07:00
Steve Lee
cced56d75a
Make PS-Committee reviewed experimental features stable ( #15864 )
2021-08-09 14:01:57 -07:00
Steve Lee
9fb3c2e97c
Highlight using error color the exception Message and underline in PositionMessage for Get-Error ( #15786 )
2021-07-16 15:15:16 +05:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
b6a687bf21
Correct case of $error special variable
2020-01-13 19:19:39 +00:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Steve Lee
2f672538b2
Add Type member to Exceptions containing type of exception for Get-Error ( #11076 )
2019-11-22 12:57:52 -08:00
Steve Lee
0aaced35ad
Update Get-Error to not modify the original $Error object ( #11125 )
2019-11-21 15:14:33 +05:00
Steve Lee
9b71696e33
Add OutputType to Get-Error cmdlet and preserve original typenames ( #10856 )
...
- Added OutputType attribute.
- Cmdlet adds the PSExtendedError typename and removes Exception and ErrorRecord typenames so that the formatting is used. The formatter then removes PSExtendedError and puts back the original typename so that $Error should be the same before calling Get-Error.
- While testing, had to make some changes to how InvocationInfo is retrieved so that ParseException which contains a nested ErrorRecord which as InvocationInfo is handled correctly.
- Combined Exception and ErrorRecord formatter into one.
2019-11-19 08:54:58 +05:00
Steve Lee
d8d32d79c2
Implement Get-Error cmdlet as Experimental Feature ( #10727 )
2019-10-15 14:32:14 -07:00