source/lib/VBDockPanel.js
// Click event handler invoked when the tab close ("X") button is clicked

Click event handler invoked when the tab close ("X") button is clicked
Click event handler invoked when the tab close ( " X " ) button is clicked
onConnTabClose(conn) {
    this.selectedConn = null
    const headerPanel = this.connInfoList.get(conn.connId).headerPanel
    headerPanel.remove()
    this.tabAdd.click()
    this.tabHeader.scrollLeft = 0
    conn.terminate()
    this.connInfoList.delete(conn.connId)
  }
onConnTabClose ( conn ) { this . selectedConn = null const headerPanel = this . connInfoList . get ( conn . connId ) . headerPanel headerPanel . remove ( ) this . tabAdd . click ( ) this . tabHeader . scrollLeft = 0 conn . terminate ( ) this . connInfoList . delete ( conn . connId ) }
Click event handler invoked when the tab close ("X") button is clicked
Click event handler invoked when the tab close ( " X " ) button is clicked
// Reset selectedConn
 // Remove the conn's tab header from the UI
 //tabHeader.removeChild(headerPanel)
 // Set the Add tab header to selected and display the Add tab
 // Scroll to the start of the tab item list
 // Terminate the connection, which will in turn destroy the socket
 // Remove the reference to the connection from the connection list
