Skip to content

Run Task quick pick: separator with absolute Taskfile path hides the first task's description #262

Description

@SchlenkR

Summary

In the "Run Task" quick pick (vscode-task.runTaskPicker / runTaskPickerWithArgs), the separator that precedes the tasks of a Taskfile uses the absolute path of the Taskfile as its label. VS Code renders a separator label on the right side of the first item below it, so the first task's description gets squeezed to a few characters ("Top...") while the following tasks show their description in full.

Steps to reproduce

  1. Workspace folder with a Taskfile.yml in a reasonably deep path, e.g. /Users/<user>/repos/<org>/<project>/<worktree>/Taskfile.yml.
  2. Three tasks with short names and a desc each.
  3. Run "Task: Run Task" (quick pick).

Observed

topic-build       Top...   /Users/<user>/repos/<org>/<project>/<worktree>/Taskfile.yml
topics-menu       Topics-Menü im Browser
topics-menu-stop  Topics-Menü stoppen

Only the first item loses its description; the separator label (full path) takes the space.

Expected

All items show their description. The separator should carry something short, e.g. the Taskfile path relative to the workspace folder (Taskfile.yml) or the workspace folder name, with the full path available as tooltip or detail.

Where

_loadTasksFromTaskfile() builds the list as [new Separator(taskfile.location), ...tasks]; location is the absolute path.

Environment

  • vscode-task 1.0.1
  • VS Code 1.137.0, macOS
  • Task 3.53.1

Activity

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

    state: needs triageWaiting to be triaged by a maintainer.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions