microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.76k stars 29.1k forks source link

view name no longer shown when opened in Panel #206362

Open robinbobbitt opened 8 months ago

robinbobbitt commented 8 months ago

Type: Bug

Create an extension that contributes the following:

  "contributes": {
    "viewsContainers": {
      "panel": [
        {
          "id": "my-panel",
          "title": "Panel Title",
          "icon": "images/my-icon.svg"
        }
      ]
    },
    "views": {
      "my-panel": [
        {
          "id": "foo.bar.myPanel",
          "name": "My View Name",
          "type": "webview",
          "contextualTitle": "Contextual Title",
          "visibility": "visible",
          "retainContextWhenHidden": true
        }
      ]
    }
}

When shown in the horizontal Panel, only the Panel Title is seen. When the view is moved to the primary sidebar, the view name is seen. In older versions of VSCode, the view name was displayed.

VS Code version: Code 1.86.2 (Universal) (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:13.651Z) OS version: Darwin x64 23.3.0 Modes:

View in Panel:

image

View in Primary Sidebar:

image
HampusAdolfsson commented 5 days ago

Adding onto this:

If I have a view container with two views, and hide one of them (by right clicking its title), the title for the remaining view becomes hidden. Since there is no view title left, there is nowhere left I can right click to bring up that list of views in the container and unhide the one I just hid:

Image

Now I can no longer bring up that menu:

Image

The only way to unhide the view is by running the "Focus on Profiling View" command.

Moreover, when there's only a single view left in the container, I can no longer drag any new views into it:

https://github.com/user-attachments/assets/e7ca7d1b-9045-456d-9838-c9df25177c94