Ilya
dfb5b047b1
Revert "Update formatter to not write newlines if content is empty ( #11193 )" ( #11342 )
...
This reverts commit 51d2523f5f .
2019-12-18 00:53:19 +05:00
Steve Lee
edd3e7680c
Move Set-StrictMode to outer scriptblock for ErrorView ( #11381 )
2019-12-17 23:43:47 +05:00
Steve Lee
6e4da244c5
Update ConciseView to use TargetObject if applicable ( #11075 )
2019-12-10 09:50:51 -08:00
Steve Lee
ee4eba5348
Update calculation of char width to respect CJK chars correctly ( #11262 )
2019-12-05 08:09:56 +05:00
Steve Lee
51d2523f5f
Update formatter to not write newlines if content is empty ( #11193 )
2019-12-02 10:51:02 -08:00
David Smatlak
3923ca1728
Fixes FWLinks for PS7 online help documents ( #11071 )
2019-12-02 10:25:56 -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
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
Joel Sallow (/u/ta11ow)
440837944a
Test-Connection - Improve Logic and Output (#10697 )
2019-11-18 11:32:59 -08:00
James Truher [MSFT]
fe712f8de2
Experimental Feature: Provide Unix stat information in filesystem output ( #11042 )
2019-11-15 17:26:11 -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
Ilya
d58a82ad19
Cleanup: use the built-in type alias ( #10882 )
2019-11-06 08:47:32 +05:00
Steve Lee
ca68d9dbc5
Add GraphicalHost assembly to enable Out-GridView, Show-Command, and Get-Help -ShowWindow ( #10899 )
2019-11-01 10:05:32 -07:00
Steve Lee
00f41a74a5
Handle case where Host may not return Rows or Cols of screen ( #10938 )
2019-10-30 12:25:13 -07:00
Steve Lee
edda43dfb4
Fix use of accent colors for hosts that don't support them ( #10937 )
2019-10-30 12:24:25 -07:00
Steve Lee
4ff9924cbf
Add $env:__SuppressAnsiEscapeSequences to control whether to… ( #10814 )
2019-10-24 12:45:26 -07:00
Steve Lee
3806c396b1
Disable strict mode in Get-Error formatting script ( #10800 )
2019-10-18 14:42:17 -07:00
Steve Lee
d8d32d79c2
Implement Get-Error cmdlet as Experimental Feature ( #10727 )
2019-10-15 14:32:14 -07:00
Joel Sallow (/u/ta11ow)
2e951793af
Format-Hex: Improve mixed-collection piped input and piped streams of input ( #8674 )
2019-10-15 11:04:45 -07:00
Steve Lee
bf5956193f
Remove unused SourceLength remoting property causing formatting issues ( #10765 )
2019-10-12 22:10:10 +05:00
Steve Lee
36bc894d9b
For ConciseView, show line context information if multiple lines but no scriptname ( #10746 )
2019-10-10 16:06:43 +05:00
Derek Xia
4a4dc4c751
Adds emphasis to Select-String default formatter ( #8963 )
2019-10-08 16:11:10 -07:00
Steve Lee
bce5b20d2d
Update ConciseView to remove unnecessary text and not color entire line in red ( #10724 )
2019-10-08 14:14:23 -07:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Thomas Nieto
7f6e65671d
Update help format to use proper case ( #10678 )
2019-10-03 17:20:30 -07:00
Dan Thompson
5a236f7d2f
Tweak help formatting script to be more StrictMode tolerant ( #10563 )
2019-10-03 17:18:58 -07:00
Steve Lee
77ddec1614
Add back newline for grouping with Format-Table and -Property ( #10653 )
2019-10-02 12:11:55 -07:00
Ilya
fbf4f6c11b
Replace ArrayList with List<T> ( #10333 )
2019-09-05 10:54:18 -07:00
Steve Lee
828d12c237
Expose PreRelease label in PSModuleInfo formatter ( #10316 )
2019-08-09 16:36:53 +05:00
Keith Hill
482c64b35f
Display Duration when displaying HistoryInfo ( #9751 )
2019-06-20 13:39:41 -07:00
Steve Lee
eedb37f4d6
Update width of datetime to accommodate change in Japan datetime format with new era starting 5/1/19 ( #9503 )
2019-05-01 17:07:21 -07:00
Paul Higinbotham
aeb601892d
Fix Get-Runspace runspace object format Type column ( #9438 )
2019-05-01 16:01:30 -07:00
Ilya
bd6fdae735
Cleanup: sort usings ( #9490 )
2019-04-30 10:25:11 +05:00
Ilya
ceed73d737
Run Codeformatter for SMA ( #9402 )
2019-04-24 19:27:22 +05:00
Staffan Gustafsson
42c289fc8e
Improve formatting performance by having better primitives on PSObject ( #8785 )
...
By not doing excessive amounts of extra work, formatting can be sped up quite significantly (about 8x faster).
The main change comes from adding new, more efficient, primitive to query an object for the existence of an instance member.
The formatting system has been checking for if an object has properties other than some decorated properties added by PS remoting, and it doesn't this by retrieving all properties which results in heavy allocations and wasted cycles.
By adding `GetFirstOrDefault` to `PSObject` and similar primitives to the underlying Adapters, we are able to return early, without having to get all properties back.
2019-03-20 18:43:52 -07:00
Paul Higinbotham
66ab6e7e74
Fix for FormatTable remote deserialization regression ( #9116 )
2019-03-18 09:59:33 -07:00
Staffan Gustafsson
9983297254
Removing Hardlink from Mode property in default file system format ( #8789 )
2019-03-12 15:49:16 -07:00
Ilya
759c4abde8
Use Type.EmptyTypes and Array.Empty<T>() to replace our custom code of the same functionality ( #9042 )
2019-03-09 17:53:31 -08:00
Kirk Munro
45aba2acb5
Add 5 'InvokeAsync' overloads and 'StopAsync' to the 'PowerShell' type ( #8056 )
2019-03-06 10:06:11 -08:00
Ilya
ff3edaa2e3
Fix lgtm issues ( #8843 )
...
Add some null checks
Remove unused code
2019-02-13 16:51:05 +05:00
Steve Lee
3e8f85a682
Enable catching NotImplementedException when calling into RawUI for members that are not implemented
2019-01-28 12:13:15 -08:00
Ilya
d80154430d
Style: Change first char to upper in summary comments ( #8597 )
2019-01-09 13:07:40 -08:00
Ilya
233b54ed65
Style: Add a space after "//" in comments and remove unneeded comments after "}" ( #8576 )
2019-01-05 17:51:20 -08:00
Ilya
1be3f4cc0e
Style: Add the ending period to the XML document texts ( #8577 )
2019-01-05 15:40:24 -08:00
Ilya
dfd2f69369
Style: Change 'String.' to 'string.' ( #8568 )
2018-12-31 20:44:16 +05:00
Ilya
56569b9315
Style: Replace String.IsNullOrEmpty with string.IsNullOrEmpty ( #8557 )
2018-12-31 15:10:15 +05:00
Ilya
7207db6360
Style: Convert to upper first char in <param> and <exception> doc tags ( #8556 )
2018-12-29 08:25:49 +05:00
Ilya
479fc64aff
Style: Add period before </param> and </exception> doc tags ( #8553 )
2018-12-28 16:39:06 +05:00
Ilya
767c13fca1
Style: Remove extra spaces after <para> and before </para> docs tags ( #8547 )
2018-12-28 11:05:14 +05:00
Steve Lee
9f8d643f70
Fix mistake on deserialization ( #8502 )
...
Replace this.hideHeader with this.repeatHeader
2018-12-27 12:10:59 +05:00