-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Launching any cli app(such as powershell, wsl) sets the tab's icon as the default profile's icon #10669
Comments
You know, I could have sworn we had an issue tracking this, but looking at https://github.com/microsoft/terminal/issues?q=is%3Aopen+is%3Aissue+label%3AArea-DefApp, looks like we don't. I believe the plan of record is to use the settings in |
Maintainer note: When we get around to doing this, we should simultaneously do #6776, with a similar style fix. |
Right now, we store GUIDs in panes and most of the functions for interacting with profiles on the settings model take GUIDs and look up profiles. This pull request changes how we store and look up profiles to prefer profile objects. Panes store strong references to their originating profiles, which simplifies settings lookup for CloseOnExit and the bell settings. In fact, deleting a pane's profile no longer causes it to forget which CloseOnExit setting applies to it. Duplicating a pane that is hosting a deleted profile (#5047) now duplicates the profile, even though it is otherwise unreachable. This makes the world more consistent and allows us to _eventually_ support panes hosting profiles that do not have GUIDs that can be looked up in the profile list. This is a gateway to #6776 and #10669, and consolidating the profile lookup logic will help with #10952. PR #10588 introduced TerminalSettings::CreateWithProfile and made ...CreateWithProfileByID a thin wrapper over top it, which looked up the profile by GUID before proceeding. It has also been removed, as its last caller is gone. Closes #5047
This pull request introduces our first use of the "base" profile as an actual profile. Incoming commandlines from `wt foo` *and* default terminal handoffs will be hosted in the base profile. **THIS IS A BREAKING CHANGE** for user behavior. The original behavior where commandlines were hosted in the "default" profile (in most cases, Windows PowerShell) led to user confusion: "why does cmd use my powershell icon?" and "why does the title say PowerShell?". Making this change unifies the user experience so that we can land commandline detection in #10952. Users who want the original behavior can get it back for commandline invocation by specifying a profile using the `-p` argument, as in `wt -p PowerShell -- cmd`. As a temporary stopgap, users who attempt to duplicate the base profile will get their specified default profile until we land #5047. This feature is hidden behind the same feature flag that controls the visibility of base/"Defaults" in the settings UI. Fixes #10669 Related to #6776
🎉This issue was addressed in #11022, which has now been successfully released as Handy links: |
Windows Terminal version (or Windows build number)
10.0.22000.65, 1.10.1933.0
Other Software
No response
Steps to reproduce
Set default terminal application as windows terminal preview.
Use search to open powershell(or wsl)
See tab icon as the default profile's icon
Expected Behavior
See the tab's icon as the app's icon.
Actual Behavior
The tab's icon is the default profile's icon.
The text was updated successfully, but these errors were encountered: