Skip to content

Add commands for queue management (pause/resume/cancel) #745

Description

@andi1984

Priority: MEDIUM

Enhancement

Expose queue controls (pause/resume/cancel) as commands to give users more control over batch operations.

Why It Matters

Users currently have no way to control batch operations once started.

Implementation

  1. Add commands to package.json:
{
  "commands": [
    {
      "command": "extension.pauseQueue",
      "title": "Pause Compression Queue",
      "category": "TinyPNG"
    },
    {
      "command": "extension.resumeQueue",
      "title": "Resume Compression Queue",
      "category": "TinyPNG"
    },
    {
      "command": "extension.cancelQueue",
      "title": "Cancel Compression Queue",
      "category": "TinyPNG"
    }
  ]
}
  1. Make status bar clickable in QueueService:
private updateStatusBar(): void {
    // ... existing code
    this.statusBarItem.command = 'extension.pauseQueue';
    // ...
}
  1. Implement the command handlers in src/commands/

Priority

MEDIUM - Feature enhancement for better UX

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions