-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix tab completion for unlocalized about* topics #15265
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
Fix tab completion for unlocalized about* topics #15265
Conversation
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
Path.Combine(userHelpDir, currentCulture), | ||
Path.Combine(userHelpDir, "en-US"), | ||
Path.Combine(appHelpDir, currentCulture), | ||
Path.Combine(appHelpDir, "en-US") |
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 discussion:
Path.Combine(userHelpDir, currentCulture), | |
Path.Combine(userHelpDir, "en-US"), | |
Path.Combine(appHelpDir, currentCulture), | |
Path.Combine(appHelpDir, "en-US") | |
Path.Combine(userHelpDir, currentCulture), | |
Path.Combine(appHelpDir, currentCulture), | |
Path.Combine(userHelpDir, "en-US"), | |
Path.Combine(appHelpDir, "en-US") |
Maybe users want to get topics in their language first?
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
@MartinGC94 Thank you for your contribution! |
🎉 Handy links: |
Fixes tab completion for help topics on systems without localized help by adding en-US as a fallback.
Get-Help About<Tab>
PR Context
Get-Help will automatically fall back to en-US help topics so the completion for it should do the same.
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).