-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Collect all known PowerShell Core installations for dynamic profiles #4273
Conversation
I'm fixing the guid to the legacy pscore guid so that users who have it set as their default profiles will not be disappointed. I'm fixing the name to |
scoop, dotnet global, x86, ARM and msix are not localizable. "Preview" - we need to discuss that. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Yes, please discover and setup any preview releases I have installed. |
@ejsmith oh absolutely! This is about whether the word preview is localizable. Sorry, that context was from the previous sentence and fairly sparse. :) |
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.
Looks good. My comments are not high importance.
Here's a question: should 7 preview actually fall below 6 GA? Or should we always prefer the higher version numbered one |
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.
I think I only have nits, but I might want to see how the discussion plays out before I sign off. Or Carlos could sign off too, I don't really care
@@ -70,6 +70,7 @@ class TerminalApp::Profile final | |||
bool HasConnectionType() const noexcept; | |||
GUID GetConnectionType() const noexcept; | |||
|
|||
void SetGuid(GUID guid) noexcept { _guid = guid; } |
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.
I mean I get it, but this should probably be in the cpp
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.
Seems fine to me - I'll leave the merge to you to re-run CI, maybe push a commit, idc.
No, in my opinion. If you're the kind of person to install previews, you want the leading edge version number even if it's not ready yet. And if you're a person who wants 6 GA as your default... you could just... not install the previews. Or make some of your own profiles. |
Hello @DHowett-MSFT! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
Maybe should add powershell core 7 stable profile now? |
@bys1123 that’s the point, it is automatic. |
@DHowett-MSFT Thanks for explains. But, powershell core 7 stable didn't show up on my Terminal list. Is Windows Terminal Preview v0.9.433.0 included this PR? |
Yes. Can you share a copy of your profiles.json? |
Here you are:
|
And where did you install powershell core 7? |
E:\Program Files\PowerShell\7 |
Sorry, Terminal only checks normal places. It uses your system’s official “Program Files” directory to determine where to look. Anybody installing autodetectable shells to weird locations will need to make their own profiles for them. |
But vscode detect it automatically. |
@bys1123 I have a workaround for this: make a symlink from where you installed PowerShell to |
This pull request teaches the PowerShell Core generator about a bunch of different locations in which it might find a PowerShell.
These instances will be sorted, a leader will be elected, and that leader will be promoted and given the vaunted title of "PowerShell".
Names will be generated for the rest.
The sort order is documented in the comments, but that comment will be replicated here:
Closes #2300