TerminalPaneContent.cpp - TerminalPaneContent::TerminalPaneContent never knows the profile settings updated with the wt.exe cmdline arguments #17473
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Needs-Attention
The core contributors need to come back around and look at this ASAP.
Needs-Tag-Fix
Doesn't match tag requirements
Windows Terminal version
#16497 (which is in sync with main) - PR-Commit: 756d7b3
Windows build number
10.0.19045.4529
Other Software
No response
Steps to reproduce
Try to access the profile configuration used by the current terminal pane content in a version that is updated based on the command line parameter used to start wt.exe .
Expected Behavior
The
_profile
variable contains the current profile settings from settings file.And the
_cache
contains the settings updated based on the wt.exe command line arguments.Actual Behavior
The
_profile
variable contains the current profile settings from settings file.And the
_cache
contains the current profile settings from settings file too.Debug information
You can use my PR #16497 and check the value of
const auto closeMode
inTerminalPaneContent::_controlConnectionStateChangedHandler
. It is always the one from settings and the same as the one from_profile
.If you compare the value against the value returned in
AppCommandlineArgs::_getNewTerminalArgs
you will see that the command line parsing works.The text was updated successfully, but these errors were encountered: