You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changing name of terminal with split terminals in Switch Active Terminal changes wrong terminal name #48671
bugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Version 1.22.2
Commit 3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9
Date 2018-04-12T16:38:45.278Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
OS Version: Windows 10
Steps to Reproduce:
Open terminal (AKA term1) and split it (with Ctrl+\)
Open another terminal (AKA term2)
Ctrl+Shift+P Switch Active Terminal
Click on the Rename button of term1 and change it's name, this changes fine: bash, bash -> client, bash
Click on the Rename button of term2 and change it's name, this changes the name of the second split terminal of term1: client, bash -> client, server
This happens when opening more terminals or split terminals.
Basically, the Rename action changes the terminal at index = line in the list of terminals,
but the list of terminals contains all the split terminals, so index = 2 in the switch list is the second terminal in the terminals list, which is the split terminal of term1 in the example.
changed the title [-]Changing name of terminal with split terminals in `Switch Active Terminal`[/-][+]Changing name of terminal with split terminals in `Switch Active Terminal` changes wrong terminal name[/+]on Apr 25, 2018
Giora Guttsait (@gioragutt) I fixed it, this was missed when the split concept was added. It will now rename/kill the last active terminal (not necessarily the first) within the selected "tab".
Daniel Imms (@Tyriar) First of all, thanks for the reply and work, that's immensely appreciated.
The change is acceptable, although, you could just assign an index to each terminal and have it displayed in the dropdown.
f.e: tab 1 contains terminals 1, 2 and 3, and tab 2 contains 1 and 2.
The dropdown could consist of:
1.1 <name>
1.2 <name>
1.3 <name>
2.1 <name>
2.2 <name>
That's just as easy to implement, and might give more control over the terminals.
I haven't seen the source code for terminals, but if you iterate over tabs and you can get the terminals, or you can link each terminal to the index of it's tab, then that's quite straightforward.
bugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Activity
vscodebot commentedon Apr 25, 2018
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
[-]Changing name of terminal with split terminals in `Switch Active Terminal`[/-][+]Changing name of terminal with split terminals in `Switch Active Terminal` changes wrong terminal name[/+]gioragutt commentedon Apr 25, 2018
This also happens with the
Deletebutton, same idea. Deletes the wrong terminal.gioragutt commentedon May 4, 2018
Tyrair can I get a comment on this?
Tyriar commentedon May 6, 2018
Giora Guttsait (@gioragutt) sorry, working through a big backlog of notifications. I can repro the bug, will see if I can get it fixed in 1.24 👍
Tyriar commentedon May 6, 2018
Giora Guttsait (@gioragutt) I fixed it, this was missed when the split concept was added. It will now rename/kill the last active terminal (not necessarily the first) within the selected "tab".
gioragutt commentedon May 6, 2018
Daniel Imms (@Tyriar) First of all, thanks for the reply and work, that's immensely appreciated.
The change is acceptable, although, you could just assign an index to each terminal and have it displayed in the dropdown.
f.e:
tab 1contains terminals1,2and3, andtab 2contains1and2.The dropdown could consist of:
1.1 <name>1.2 <name>1.3 <name>2.1 <name>2.2 <name>That's just as easy to implement, and might give more control over the terminals.
I haven't seen the source code for terminals, but if you iterate over tabs and you can get the terminals, or you can link each terminal to the index of it's tab, then that's quite straightforward.
Daniel Imms (@Tyriar) I can even try for a PR if you're okay with my proposition
Ori A (@oriash93) תוקן 👍
Tyriar commentedon May 11, 2018
I noticed this is also inconsistent with the
viewquick open:Let's do it and make the numbering consistent in that view while we're at it. The feature request for this is at #44572