emeraldwalk / vscode-runonsave

Visual Studio Code extension to run commands whenever a file is saved.
Apache License 2.0
182 stars 57 forks source link

Automatically show output panel #105

Closed oNaiPs closed 1 month ago

oNaiPs commented 1 month ago

Implements spec from #104.

Allows user to specify, per command, wether they want to show the output panel or not.

Adds the following new setting:

- ...
- `commands`
  - `autoShowOutputPanel` - Automatically shows the output panel:
    - `never` - Never changes the output panel visibility (default).
    - `always` - Shows output panel when the first command starts.
    - `error` - Shows output panel when a command fails.
    - ...

Example usage on vscode settings.json:

  "emeraldwalk.runonsave": {
    "commands": [
      {
        "cmd": "pwd",
        "autoShowOutputPanel": "always"
      }
    ]
  }
oNaiPs commented 1 month ago

@bmingles should be done now, let me know if that works.

bmingles commented 1 month ago

@oNaiPs Your change should be available in the 0.3.2 pre-release: https://github.com/emeraldwalk/vscode-runonsave/releases/tag/v0.3.2-pre