| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…uns for the first time' feature
|
Should we set CL-Breaking label? Formally it is a breaking change. |
Sorry, something went wrong.
|
It's not a breaking change to pwsh. The functionality never worked in pwsh. |
Sorry, something went wrong.
|
How do we mark the difference from Windows PowerShell? |
Sorry, something went wrong.
|
I don't think we have such a label ... There are still codes guarded by #if CORECLR and all those places are essentially differences from Windows PowerShell. |
Sorry, something went wrong.
|
Dongbo Wang (@daxian-dbw) We don't have a method to track those changes |
Sorry, something went wrong.
|
I agree this is not breaking. |
Sorry, something went wrong.
|
My reasoning has always been that when 6.0 version was released, all the differences from Windows PowerShell version was breaking changes (never completely enumerated) and somehow we need to inform users about this. |
Sorry, something went wrong.
|
Then I think that would just be a doc issue. Breaking changes are to draw attention to breaking change in THAT release. 6.0 being long out of support makes not sense to make a breaking change announcement. |
Sorry, something went wrong.
|
🎉v7.0.0-preview.6 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
…elp` runs for the first time' feature (PowerShell#10974)
| Back | FazBrowse Home | New Git URL |
PR Summary
Fix #7452
Background about the setting DisablePromptToUpdateHelp:
In Windows PowerShell, DisablePromptToUpdateHelp is a registry key property set at HKLM\SOFTWARE\Microsoft\PowerShell.
It's not really a setting for user to configure PowerShell, but instead, an implementation detail. It's used by Get-Help to tell if Update-Help has been run yet. On a fresh Windows, DisablePromptToUpdateHelp is not set, so Get-Help running in a admin privilege PowerShell session will prompt user to ask if the user wants to run Update-Help to download help content for all the modules in module path. DisablePromptToUpdateHelp then is set to 1 after the prompt (Update-Help will set it to 1 too), so the code that prompt and run Update-Help in Get-Help is guaranteed to execute only once.
This feature never worked in pwsh, because when moving the registry settings to the powershell.config.json file, UpdatableHelpSystem.ShouldPromptToUpdateHelp() was not updated correctly to keep the previous behavior. However, that was not a bad thing because the previous behavior in Windows PowerShell is not appropriate to pwsh anymore:
Given the fact that:
I propose to remove this functionality from pwsh, so as to remove the DisablePromptToUpdateHelp setting from powershell.config.json file (it should never be there as an implementation detail).
If we decide to bring back this functionality to pwsh in future, the implementation definitely needs to be re-written.
PR Checklist