Skip to content

Conversation

@cristiand391
Copy link
Member

@cristiand391 cristiand391 commented Jan 14, 2026

What does this PR do?

Update sf org list to always warn when the user has expired/deleted scratch orgs.

I have seen that warning a few times before in vscode, thinking the IDEx extensions were putting that in the cmd output but turns out we just print it if you have +10 expired/deleted scratch orgs. Now it prints it if you have at least 1.

What issues does this PR fix or reference?

@W-20911043@

@cristiand391 cristiand391 changed the title fix: always warn on expired/deleted scratch orgs fix: always warn on expired/deleted scratch orgs W-20911043 Jan 15, 2026
@cristiand391 cristiand391 marked this pull request as ready for review January 15, 2026 14:10
@cristiand391 cristiand391 requested a review from a team as a code owner January 15, 2026 14:10
if (groupedSortedOrgs.expiredScratchOrgs.length > 10 && !flags.clean) {
this.warn(messages.getMessage('deleteOrgs', [groupedSortedOrgs.expiredScratchOrgs.length]));
if (groupedSortedOrgs.expiredScratchOrgs.length >= 1 && !flags.clean) {
this.warn(messages.getMessage('deleteOrgs', [groupedSortedOrgs.expiredScratchOrgs.length, EOL]));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msg with newline before table is printed:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants