-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Make PS-Committee reviewed experimental features stable #15864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs
Show resolved
Hide resolved
@@ -620,13 +620,10 @@ internal void TranscribeResult(Runspace sourceRunspace, string resultText) | |||
|
|||
resultText = resultText.TrimEnd(); | |||
|
|||
if (ExperimentalFeature.IsEnabled("PSAnsiRendering")) | |||
var text = new ValueStringDecorated(resultText); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: the struct could be readonly struct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
making the struct readonly requires making the fields readonly which breaks the deferred creation of PlainText only when needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LazyInitializer could be used for PlainText.
CodeQL issue appears to have been fixed recently by GitHub in their action: github/codeql-action@a00769b#diff-5bd808ec74194675da6319beb80c228163039f26c9ddf1b8bf3eef9b12c9341bR490 |
🎉 Handy links: |
🎉 Handy links: |
PR Summary
Each commit makes a feature non-experimental (although one extra due to my filter only looking at .cs files initially...). Removed the advertising of the experimental feature and any code and tests that checked that the feature is enabled.
To avoid the headache of merge conflicts, I'm submitting this as a single PR.
PR Context
Fix #15862
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).