Skip to content

activateById toggle side panel instead of expanding it #7534

@brichet

Description

@brichet

Please answer the following questions for yourself before submitting an issue

  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository

Description

Using the shell function activateById on a side panel widget may result to the opposite behavior, if the widget was already opened.

It may be related to #7178.
AFAIU the PR, if the id is provided and the current widget has this ID (it is opened), the expand will collapse the panel.

Reproduce

Hard to reproduce, it needs a extension that provide a sidepanel, and which call the shell.activateById on this sidepanel when it opened.
See context to reproduce it.

Expected behavior

The sidepanel to remain opened.

Context

Found when testing jupyterlab_chat.
This line is used to ensure that the sidepanel is open, but the sidepanel is collapsed instead.

cc. @haok1402

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions