spencerwmiles / vscode-task-buttons

Add your tasks to the VSCode interface for even faster usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task Buttons

Define your tasks and then execute them at the click of a button in your taskbar.

Usage of Task Buttons

Extension Settings

This extension contributes the following setting:

  • VsCodeTaskButtons.showCounter: Boolean to show/hide the Task counter. Default true.
  • VsCodeTaskButtons.tasks: Array used to define tasks. See below for format.

Task button configuration format

For each button you define the following object:

{
  "label": "Label that appears in the taskbar",
  "alignment": "The alignment of the button in the taskbar. Options: left and right. Default: left",
  "task": "The vscode task to execute. Must be absent when using 'tasks'",
  "tasks": "List of tasks to show in the Quick Pick Menu",
  "tooltip": "Optional tooltip to show when hovering over the button (defaults to task name)",
  "description": "A description of the task when viewing the task list in the Quick Pick Menu"
}

Icons

You can add icons to your buttons using the following syntax in the text field:

$(icon-name)

A list of all available icon names (sourced from the VSCode theme) is here

Icons are not supported in the tooltip text.

Emoji

You can add Emoji's to the button text and tooltip text. Just type an emoji as you would any normal character opening your "emoji keyboard" (Windows MacOS)

You can also copy them from Emojipedia

Example configuration

The following settings.json example gives you four buttons using icons and emojis with one of the buttons opening up two more commands in the quick pick menu. It also has the task counter enabled.

{
    "VsCodeTaskButtons.showCounter": true,
    "VsCodeTaskButtons.tasks": [
        {
            "label": "$(notebook-move-down) Build",
            "task": "build",
            "tooltip": "๐Ÿ› ๏ธ Start the \"build\" task"
        },
        {
            "label": "$(search-refresh) Re-Build",
            "task": "re-build",
            "tooltip": "๐Ÿงน๐Ÿ› ๏ธ Start the \"re-build\" task"
        },
        {
            "label": "$(notebook-delete-cell) Clean build",
            "task": "clean",
            "tooltip": "๐Ÿงน Start a \"clean\" task"
        },
        {
            "label": "$(server-process) Server"
            "tasks": [
                {
                    "label": "๐Ÿ˜€ Start Dev Server",
                    "task": "start-dev",
                    "description": "$(debug-start) Boots up the development server"
                },
                {
                    "label": "๐Ÿ›‘ Stop Dev Server",
                    "task": "stop-dev",
                    "description": "$(debug-pause) Shuts down the development server"
                }
            ]
        }
    ]
}

Issues / Feature Requests

https://github.com/spencerwmiles/vscode-task-buttons/issues

Release Notes

1.1.3

  • Bump @typescript-eslint/eslint-plugin from 5.59.0 to 5.59.1 by @dependabot in #45
  • Bump @typescript-eslint/parser from 5.59.0 to 5.59.1 by @dependabot in #47
  • Bump @types/node from 18.16.0 to 18.16.3 by @dependabot in #46
  • Bump @typescript-eslint/parser from 5.59.1 to 5.59.2 by @dependabot in #52
  • Bump eslint from 8.39.0 to 8.40.0 by @dependabot in #48
  • Bump @typescript-eslint/eslint-plugin from 5.59.1 to 5.59.5 by @dependabot in #54
  • Bump @typescript-eslint/parser from 5.59.2 to 5.59.5 by @dependabot in #56
  • Bump eslint from 8.40.0 to 8.41.0 by @dependabot in #58
  • Bump @typescript-eslint/parser from 5.59.5 to 5.59.8 by @dependabot in #67
  • Bump @typescript-eslint/eslint-plugin from 5.59.5 to 5.59.8 by @dependabot in #68
  • Bump @types/vscode from 1.77.0 to 1.78.1 by @dependabot in #64
  • Bump @types/node from 18.16.3 to 20.2.5 by @dependabot in #62
  • Corrected how tasks were being passed through to the executeCommand call for subtasks by @spencerwmiles in #66

Full Changelog: https://github.com/spencerwmiles/vscode-task-buttons/compare/v1.1.2...v.1.1.3

1.1.2

  • Under the hood repo cleanup

1.1.1

  • Updated dependencies
  • Fixed bad JSON in package.json

1.1.0

  • Rewrite of the extension ot use TypeScript (Shoutout to Fabje for the support)
  • Added support for alignment of buttons via "alignment property" (default: left - options: left, right)
  • Added MIT license (Thanks gameguy682)
  • Added Quick Pick Menu

1.0.4

  • Fixed issue with task counter not updating (closed issue #12) PR
  • Shoutout to Fabje for the PR

1.0.3

  • Task Buttons now include the ability to show a tooltip on hover via an added tooltip property.
  • Thanks to @oleksiikutuzov for the suggestion.

1.0.2

  • Task Buttons will reload on configuration change. Reload was previously required.

1.0.1

  • Updated documentation

1.0.0

  • Initial release of Task Buttons

About

Add your tasks to the VSCode interface for even faster usage

License:MIT License


Languages

Language:TypeScript 90.5%Language:JavaScript 9.5%