GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — [release/v7.6.7] Allow user to force the default implicit formatting to use `AutoSize` by daxian-dbw · Pull Request #28096 · PowerShell/PowerShell Conversation
Member
Backport of #28018 to release/v7.6.7 Triggered by Dongbo Wang (@daxian-dbw) on behalf of Dongbo Wang (@daxian-dbw) Original CL Label: CL-General /cc @PowerShell/powershell-maintainers ImpactREQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected. Tooling Impact
Customer Impact
Adds a new RegressionREQUIRED: Check exactly one box.
This is not a regression. TestingOriginal PR added a test verifying that List and Complex view formatting remain streamed (not buffered) even with AutoSizeDefaultFormatting enabled. Backport verified by confirming the cherry-pick applied cleanly with no conflicts on release/v7.6.7. RiskREQUIRED: Check exactly one box.
Medium risk: adds new opt-in formatting behavior gated behind a new $PSStyle property that defaults to off, so existing behavior is unchanged unless a user explicitly opts in. List and Complex views remain streamed (unbuffered), limiting the scope of the change.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
…PowerShell#28018) When `$PSStyle.AutoSizeDefaultFormatting = $true`, the default implicit formatting applied by PowerShell (via `Out-Default`) will enforce `AutoSize` when the chosen formatting view is `table` or `wide`, similar to running `Format-Table -AutoSize` and `Format-Wide -AutoSize` explicitly. The `List` and `Complex` views formatting won't be buffered though -- they will continue to be streamed. This allows PowerShell to generate less verbose output when used by an agent. It also makes PowerShell works better with small-window terminal.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copilot review overview🟡 Changes recommendedThe fallback path drops formatting parameters, preventing AutoSize for objects without registered format views. Get a fresh assessment by requesting another Copilot review. Review effort: Lite What changed in this PRBackports opt-in Changes:
💡 Add a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Aditya Patwardhan (adityapatwardhan)
approved these changes
Dongbo Wang (daxian-dbw)
merged commit
4bb1dc6
into
PowerShell:release/v7.6.7
36 checks passed
Uh oh!
There was an error while loading. Please reload this page.
Dongbo Wang (daxian-dbw)
deleted the
backport/release/v7.6.7/28018-2179219c8
branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers
Copilot code review
Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Uh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
CL-General
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |