Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,16 @@ internal override FormatStartData GenerateStartData(PSObject so)

/// <summary>
/// Limits the association list size for table view.
/// For v1.0, table view supports only 10 properties.
/// For v1.1 table view supports only 30 properties.
/// </summary>
/// <param name="list">The list to limit.</param>
/// <returns>The limited list.</returns>
private static List<MshResolvedExpressionParameterAssociation> LimitAssociationListSize(
List<MshResolvedExpressionParameterAssociation> list)
{
// NOTE: this is an arbitrary number, chosen to be a sensitive default
const int maxCount = 10;
// In future we will most likely extract this from $PSStyle & most likely from $PSStyle.FormatTable.MaxColumns
const int maxCount = 30;

if (list.Count <= maxCount)
{
Expand Down
Loading