Skip to content

Changing name of terminal with split terminals in Switch Active Terminal changes wrong terminal name #48671

@gioragutt

Description

@gioragutt
  • VSCode Version:
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:

  1. Open terminal (AKA term1) and split it (with Ctrl+\)
  2. Open another terminal (AKA term2)
  3. Ctrl+Shift+P Switch Active Terminal
  4. Click on the Rename button of term1 and change it's name, this changes fine: bash, bash -> client, bash
  5. 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

Bug is bad

  1. 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.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions