-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Enable all experimental features by default in preview version #16842
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
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
| // if no experimental features are configured in pwsh.config.json file | ||
| // and pwsh version is preview | ||
| // then we enable all experimental features by default. | ||
| enabledFeatures = engineFeatures.Select(static f => f.Name).ToArray(); |
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.
This won't work. Modules can declare experimental features which are not in engineFeatures.
It would need a more sophisticated change than this.
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.
For in-box modules they are in (could be in) engineFeatures.
For out-box modules it should be up to the authors of these modules to decide if they want to include experimental features by default.
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.
For in-box modules they are in (could be in) engineFeatures.
They are not by design, to be equivalent to any other modules and go through the same discovery path.
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.
Why not have them in engineFeatures?
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.
Because
- it's not necessary from the developer's perspective -- the module manifest already needs to have the experimental feature declared.
- it should be the same as any other module and exercise the same discovery code path.
We are not going to add a burden to the developer just for making the build easier, especially given that the build changes are already done.
|
Thinking about this proposal a bit more, I found it may not be a good idea to bake this in code (preview: always enable all built-in experimental features by default; stable: always disable all built-in experimental features by default). It's possible for 2 experimental features to be contradict to each other by design -- there are 2 different UX that we want to explore, and thus having them guarded by 2 different experimental features. In this case, they won't work together when all are enabled, so PowerShell may get in an unstable state if both are enabled by default in preview. Given this, I think it's better to keep doing this in build scripts, to allow maximum flexibility. |
PR Summary
Implement the proposal from #16837 (comment)
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).