Skip to content

"Select a task" menu contains $(icon) names #163

@malsyned

Description

@malsyned

If I use the "tasks" property to create a sub-menu of tasks, and I give the status bar button a "label" that contains an icon, then the literal string containing $(, the icon name, and ) appears in the quick pick dropdown title.

Image

In the above image, for example, I would want the label to be "Select a task for 'SEGGER J-Link'", not "Select a task for '$(chip) SEGGER J-Link'".

I suppose there are a few options for dealing with this.

  • filter out / *\$\([^\)]+\) */ from the label before generating the quick pick title.
  • add a property like "quickPickTitle": "Select a task for 'SEGGER J-Link'"
  • Just take the label out of the quick pick title entirely and always have it be just "Select a task"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions