Justin Grote
7ad43292a8
Add RecommendedAction to ConciseView of the error reporting ( #20826 )
2024-04-15 10:35:23 -07:00
Patrick Meinecke
1dc2ebe5bc
Fix error formatting for pipeline enumeration exceptions ( #20211 )
2024-03-04 12:58:06 -08:00
Aditya Patwardhan
cf6fc53c9f
Fix test failures on Windows for time zone and remoting ( #19466 )
2023-04-25 11:06:34 -07:00
Aditya Patwardhan
5a22587792
Skip VT100 tests on Windows Server 2012R2 as console does not support it ( #19413 )
2023-03-27 17:36:41 -07:00
Steve Lee
66a89826bb
Fix PlainText output to correctly remove Reset VT sequence w/o number ( #19283 )
2023-03-07 14:18:16 -08:00
Steve Lee
ec258e210f
Fix ConciseView to handle custom ParserError error records ( #19239 )
2023-03-01 11:18:11 -08:00
Aditya Patwardhan
2d15e0c5b6
Update to .NET 8 preview 1 build ( #19194 )
2023-02-22 16:12:16 -08:00
Steve Lee
52ea419662
Add Dim and DimOff to $PSStyle ( #18653 )
2022-11-29 16:13:59 -08:00
Aditya Patwardhan
f4e68ad875
Skip output rendering tests on Windows Server 2012 R2 ( #18382 )
2022-10-29 21:10:03 +05:00
James Truher [MSFT]
074aad6ea9
Add missing -Tag 'CI' to describe blocks. ( #18316 )
2022-10-17 15:27:24 -07:00
Steve Lee
d5ed53eba2
Add CustomTableHeaderLabel formatting to differentiate table header labels that are not property names ( #17346 )
2022-10-03 15:05:11 -07:00
Dongbo Wang
17e4db9b1b
Make Out-String and Out-File keep string input unchanged ( #17455 )
2022-06-08 18:13:40 -07:00
Dongbo Wang
6a522d9c68
Make AnsiRegex able to capture Hyperlink ansi sequences ( #17442 )
...
* Add the hyperlink ansi regex
* Add test
* Add comment
2022-06-08 10:35:07 -07:00
Dongbo Wang
12de67ca5d
Fix formatting to act appropriately when the style of table header or list label is empty string ( #17463 )
2022-06-02 09:20:32 -07:00
Dongbo Wang
0882737efb
Write out OSC indicator only if the stdout is not redirected ( #17419 )
2022-05-25 14:29:47 -07:00
Dongbo Wang
c40066d5f2
Fix the word wrapping in formatting to handle escape sequences properly ( #17316 )
2022-05-16 16:10:55 -07:00
Dongbo Wang
4c6c4f30af
Fix formatting truncation to handle strings with VT sequences ( #17251 )
2022-05-06 11:40:34 -07:00
Steve Lee
72e3d719d8
Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks ( #16811 )
...
* Update regex used to remove ANSI escape sequences to be more specific to decoration and hyperlinks
* add CSI sequence and change default back to `host`
* fix test for default outputrendering
fix regex for CSI by escaping the question mark
* remove hyperlink support
2022-03-24 17:44:35 -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
Dongbo Wang
c8984c0517
Make property names for the color VT sequences consistent with documentations ( #16212 )
2021-10-11 14:58:51 -07:00
Steve Lee
024f409763
Add isOutputRedirected parameter to GetFormatStyleString() method ( #14397 )
2021-09-09 11:50:36 -07: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
5e15f66f97
Add validation to $PSStyle to reject printable text as ANSI escape sequence ( #15825 )
2021-07-27 17:14:20 +00:00
Steve Lee
b5efe7bc39
Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output ( #14406 )
2021-07-20 09:02:52 +05:00
Steve Lee
375be2e705
Add DetailedView to $ErrorView ( #15609 )
2021-06-22 13:35:38 -07:00
Steve Lee
597bfc9696
Update Concise ErrorView to not show line information for errors from script module functions ( #14912 )
2021-03-08 23:37:11 +05:00
Steve Lee
8e7780860e
Reset color after writing Verbose, Debug, and Warning message ( #14698 )
2021-02-03 09:39:54 -08:00
Steve Lee
bc080921bf
Add support to $PSStyle for strikethrough and hyperlinks ( #14461 )
2020-12-19 11:54:51 +05:00
Ilya
10ef7f5161
Fix PSStyle blink codes ( #14447 )
2020-12-19 11:51:29 +05:00
Steve Lee
a99ea2acd2
Enable ANSI formatting via $PSStyle and support suppressing ANSI output ( #13758 )
2020-12-11 10:33:57 -08:00
Steve Lee
36ba1092a8
Fix case where exception message contains "`n" on Windows ( #13684 )
2020-09-24 23:43:33 +05:00
Steve Lee
d25d964d57
Fix ConciseView for interactive advanced function writing error ( #13623 )
2020-09-14 11:07:37 -07:00
Steve Lee
ec20043a91
Remove use of Test-Path in ConciseView ( #12778 )
2020-06-11 16:07:18 +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
Steve Lee
2db8516a8c
Fix ConciseView to not show the line information within the error messages ( #11952 )
2020-02-26 21:07:57 +05:00
Steve Lee
34f9b43514
Fix ConciseView where error message is wider than window width and doesn't have whitespace ( #11880 )
2020-02-20 08:38:28 +05:00
Steve Lee
66912b7428
Fix unnecessary trimming of line resulting in incorrect indexi… ( #11670 )
2020-01-30 11:03:39 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Steve Lee
5b42126f7c
Don't format exceptions that aren't ErrorRecords ( #11415 )
...
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously.
* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2019-12-21 09:45:44 +05:00
Steve Lee
563b1cba83
Add trailing line number to filename for ConciseView ( #11391 )
2019-12-18 14:05:56 -08:00
Steve Lee
edd3e7680c
Move Set-StrictMode to outer scriptblock for ErrorView ( #11381 )
2019-12-17 23:43:47 +05:00
Dongbo Wang
5605bf4195
Fix a regression in formatting caused by the FirstOrDefault primitive added in 7.0.0-Preview1 ( #11258 )
2019-12-11 15:37:18 -08:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Steve Lee
6e4da244c5
Update ConciseView to use TargetObject if applicable ( #11075 )
2019-12-10 09:50:51 -08:00
Steve Lee
2a45ccc787
Fix ConciseView to show Activity instead of myCommand ( #11007 )
...
ConciseView shows MyCommand as the prefix to the error message, but for a scriptblock, MyCommand is the whole scriptblock. Fix is to use CategoryInfo.Activity if available first. Also handle case where it's a script function by seeing if it's a command and showing MyCommand in that case rather than the Activity.
2019-11-10 16:21:10 +05:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00