AnWeber / vscode-statusbar-command

MIT License
17 stars 4 forks source link

statusbar-commands

extend the status bar with own commands.

Usage

Settings

Example

{
"statusbar_command.commands": [
    {
      "text": "$(gear)",
      "tooltip": "workspace settings",
      "id": "sbc_settings",
      "name": "settings",
      "priority": -1000,
      "alignment": "right",
      "command": "workbench.action.openWorkspaceSettings"
    },
    {
        "text": "$(file-text)",
        "id": "sbc_format",
        "name": "formatDocument",
        "tooltip": "format",
        "alignment": "left",
        "priority": 100,
        "include": "\\.js",
        "command": "editor.action.formatDocument"
    },
    {
      "text": "TS",
      "tooltip": "Typescript Server neustarten",
      "alignment": "right",
      "priority": 1000,
      "id": "sbc_ts",
      "name": "Typescript Server neustarten",
      "include": "\\.[ts|vue]",
      "command": "typescript.restartTsServer"
    },
    {
      "text": "$(terminal)",
      "tooltip": "Terminal",
      "id": "sbc_terminal",
      "name": "Terminal",
      "alignment": "right",
      "priority": 1000,
      "command": "workbench.action.terminal.toggleTerminal"
    },{
        "text": "ctrl+h",
        "id": "runTask",
        "name": "runTask",
        "command": "workbench.action.tasks.runTask",
        "arguments": ["taskName"]
    },{
      "alignment": "left",
      "command": "github.copilot.toggleCopilot",
      "id": "sbc.copilot",
      "text": "Github Copilot",
      "scriptEvents": ["vscode.workspace.onDidChangeConfiguration"],
      "script": "statusBarItem.text = vscode.workspace.getConfiguration('github.copilot.inlineSuggest').enable ? '$(github)' : '$(github-inverted)'"
    }
  ]
}

License

MIT License

Change Log

CHANGELOG