Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.
This repository was archived by the owner on May 11, 2022. It is now read-only.

Add a command that opens a view by name #4

Closed

Description

@bfitzpat

At this time, users have to explicitly click in the dropdown that appears for the workbench.action.quickOpenView and workbench.action.openView commands. There isn't a way to pass it the name and have it open it.

We can add something

Activity

  1. bfitzpat commented on Nov 22, 2019

    @bfitzpat
    CollaboratorAuthor

    This would have to be a per-extension command and something custom to each extension at this point. But may be doable so long as the extension has a handle to the view.

    I tried with reveal on the treeview object, but the tree must have at least one item to reveal - so you can't reveal an empty view? Something to look into...

    https://code.visualstudio.com/api/references/vscode-api#TreeView

  2. bfitzpat commented on Sep 9, 2020

    @bfitzpat
    CollaboratorAuthor

    This can essentially be done already... there's a command "focus" that you can apply to a view id that opens a particular view and gives it focus.

    * Open the Apache Camel K Integrations view (link:didact://?commandId=camelk.integrations.focus[Execute^])

    Essentially we are pointing to the camelk-integrations view and giving it a focus command. This works for any view in vscode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions