-
Notifications
You must be signed in to change notification settings - Fork 30k
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 contributed profile icons #182615
Fix contributed profile icons #182615
Conversation
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.
Thanks @tisilent! I made the fix a little more generic so it works with all extensions, thanks for the investigation
@Tyriar You better 👍 ,I learned. |
Wait..There are still some issues. |
@tisilent oh? It was working when I tested it out? |
this.shellLaunchConfig.color = defaultProfile.color; | ||
// Only use default icon and color if they are undefined in the SLC | ||
this.shellLaunchConfig.icon ??= defaultProfile.icon; | ||
this.shellLaunchConfig.color ??= defaultProfile.color; |
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.
@Tyriar The 'New Terminal' action requires default profile.
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.
Issues:
'New Terminal' using terminal icon, pwsh icon should be used.
After modify, the test is working:
// Only use default icon and color if they are undefined in the SLC if (!this.shellLaunchConfig.isExtensionOwnedTerminal) { this.shellLaunchConfig.icon = defaultProfile.icon; this.shellLaunchConfig.color = defaultProfile.color; } else { this.shellLaunchConfig.icon ??= defaultProfile.icon; this.shellLaunchConfig.color ??= defaultProfile.color; }
I'm not sure if there are better property to distinguish. 😖
Fix #182303 .
The little bug has returned.