Skip to content

Features preamble: Add warnings for Feature renames & deprecation - #366

Merged
Samruddhi Khandale (samruddhikhandale) merged 8 commits into
mainfrom
samruddhikhandale/legacyIds-info
Jan 5, 2023
Merged

Samruddhi Khandale (samruddhikhandale) merged 8 commits into
mainfrom
samruddhikhandale/legacyIds-info

Conversation

@samruddhikhandale

Copy link
Copy Markdown
Member

Deprecation msg
image

Renaming msg
image

joshspicer
joshspicer previously approved these changes Jan 4, 2023

@joshspicer joshspicer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice polish!

Co-authored-by: John Keech <jokeech@microsoft.com>

@jkeech John Keech (jkeech) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for applying the changes. I left one more comment about continuing to use sh instead of bash, but otherwise looks good.

@jkeech John Keech (jkeech) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Left a minor suggestion to simplify the generated script a bit, particularly in the "no warning" case.

@samruddhikhandale
Samruddhi Khandale (samruddhikhandale) deleted the samruddhikhandale/legacyIds-info branch January 5, 2023 23:08
}

if (feature?.legacyIds && feature.legacyIds.length > 0 && feature.currentId && feature.id !== feature.currentId) {
warningHeader += `(!) WARNING: This feature has been renamed. Please update the reference in devcontainer.json to "${escapeQuotesForShell(feature.currentId)}".`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wouldn't it be better to end with \n same as line 261?

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

Labels

None yet

4 participants