-
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
Expand env. vars in backgroundImage #3204
Conversation
* Fixes #2922 * Adds HasBackgroundImage() and GetExpandedBackgroundImagePath() to Profiles.cpp/h * Fills Terminal Settings with expanded path, rather than path value from profiles.json * Adds simple regression tests to detect and fail if this fix is circumvented in the future
😿 😢 why'd you make a new PR and not just force push the old 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.
"approve with comments" -- i think the tests, if you add them, should actually validate that the env var got expanded. otherwise, i'm glad you added them. otherwise, I like this PR.
I don't think these tests are going to pass. We expand the env vars on read, not on storage. This is by design so that if the env vars change at runtime they'll be reflected. |
I have no idea why these tests pass. |
Interestingly, these tests should NOT be passing - they're failing on my box. If they are passing, there's a good chance our tests aren't running correctly. |
This latest commit says "ignore don't look at", but I can't tell why we shouldn't -- it looks like they answer the creative brief? |
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.
The tests look like they're passing now and the PR looks good to me. I'll let you two decide if you want to merge it in as-is though.
"Do the tests pass on your machine?" Nope, hence "In-progress. Incomplete. Ignore" ;) |
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 that this is fine
Okay y'all. The tests now run too - had to layer JSON into userSettings. Please final-review and approve if no more changes needed. TIA. |
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.
Just a small nit but approving with suggestions. Thanks Rich!
Co-Authored-By: Carlos Zamora <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Looking for header explanation, but this is otherwise fine with me.
@DHowett-MSFT putting this on your radar 😊 |
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've taken a look as requested and still am not satisfied.
Congrats! |
🎉 Handy links: |
Summary of the Pull Request
Profiles.cpp/h
from profiles.json
circumvented in the future
PR Checklist
Validation Steps Performed