-
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
startingDirectory and splitMode ignored in settings file #13721
Comments
|
@237dmitry I tried both. Neither worked. |
Firstly, yea it's Second, did you configure your shell to actually tell the Terminal about it's CWD/? |
@zadjii-msft I added the following to my Powershell profile based on the link you provided:
Then I double checked that my settings included The behavior unfortunately persists. I still have the same problem. |
Hmm. Maybe the cwd sequence is getting lost. Can you try opening this profile with the debug tap to get a trace of all the input and output/? Once it's open, Alternatively, maybe it's the `"alt+shift+minus"` that's tripping up the keybindings. Those ones are sometimes a little wonky, esp on other keyboard layouts. As a sanity check, try binding that to something like, `f1` instead. |
I changed the relevant part in
And now it seems to duplicate the profile and CWD in all profiles except for the Visual Studio Developer command prompt. That seems to indicate that Windows Terminal works fine, and there's something about the way I've set up the Visual Studio profile which causes it to behave this way. Closing. |
Huh. Interesting! I know there have been issues with that in the past with Glad you (sorta) figured it out! |
Sorry, I have to reopen this. I tried using the same settings file on another machine and got the same unwanted behavior. So I'm leaning more towards the idea that this is definitely Windows Terminal related. |
Like, got the same behavior with cmd/powershell? I thought we had debugged this down to an issue with |
@zadjii-msft We hadn't debugged anything, really. I submitted the debug tap like you asked and then closed the issue before you had a chance to respond when I (incorrectly) concluded my issue was resolved. I'm not sure what |
I'm sorry for the radio silence here! Thanks for your patience. Based on the symptoms and your configuration here, it seems like there are two issues:
For 1, the docs reign supreme. For 2, however... every VS dev shell profile is configured to use a Visual Studio command Does that help at all? |
@DHowett I see, so this appears to be specific for profiles that use |
Thanks for confirming! Personally, I'd love to add that for everyone . . . @heaths, how integral to the continuity of "dev shell" is that it ignore the user's starting directory? I know that the start menu shortcuts work one way, but perhaps we can change that contract a bit? |
I doubt it's needed. I imagine it was probably maintained for legacy reasons, but since env vars like |
@heaths did you have any luck? |
@trippwill indicated in email with @DHowett and I that it should be safe to add. It's been available since the PowerShell dev prompt was added, which I seem to recall this code assumes already. |
Oh, I just realized that you're not even using the automatically generated VS profiles! Hah! It also turns out that our automatically-generated VS PowerShell profiles already use I'm gonna close this out, but I have made sure that the CMD version of these profiles does the same thing in #15035. |
Windows Terminal version
1.14.1962.0
Windows build number
10.0.19042.0
Other Software
No response
Steps to reproduce
startDirectory
Expected Behavior
I expect
splitMode="duplicate
to start any new panes in the directory of the parent pane.I expect
startingDirectory="D:/Dev"
to open the profile inD:/Dev
Actual Behavior
splitMode="duplicate
to starts any new panes in home directory regardless of which directory the parent pane is instartingDirectory="D:/Dev"
does not affect the default directory when opening the terminalThe text was updated successfully, but these errors were encountered: