Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actboy168/vscode-tasks
https://github.com/actboy168/vscode-tasks
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/actboy168/vscode-tasks
- Owner: actboy168
- License: mit
- Created: 2018-05-14T03:19:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T12:13:56.000Z (12 months ago)
- Last Synced: 2024-10-13T08:24:31.868Z (3 months ago)
- Language: JavaScript
- Size: 82 KB
- Stars: 37
- Watchers: 4
- Forks: 14
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tasks
This extension loads VSCode tasks into status bar.## Options
You can hide some tasks with the following options directly in `tasks.json`:```json
"label": "Test",
"options": {
"statusbar": {
"hide" : true
}
}
```You can set the label of the statusbar:
```json
"label": "Test",
"options": {
"statusbar": {
"label" : "ts"
}
}
```You can embed icons in the text by leveraging the syntax: `$(icon-name)`. More details in [icons-in-labels](https://code.visualstudio.com/api/references/icons-in-labels) and [octicons](https://octicons.github.com)
```json
"label": "Test",
"options": {
"statusbar": {
"label" : "$(beaker) ts"
}
}
```You can set the foreground color of the statusbar:
```json
"label": "Test",
"options": {
"statusbar": {
"color" : "#22C1D6"
}
}
```You can set the tooltip of the statusbar:
```json
"label": "Test",
"options": {
"statusbar": {
"detail" : "my test"
}
}
```You can enable statusbar items based on the file in the active editor using the `filePattern` attribute, causing the statusbar item to be hidden when the active file does not match the specified pattern. If the `filePattern` attribute is not provided, the statusbar item will not be hidden based on the active file. Also, if it is provided but is invalid or causes an error during validation, the statusbar item will not be displayed. (Note that `filePattern` only applies to statusbar items that have not been otherwise effectively set as hidden through `tasks.json` or `settings.json`).
For instance, the following would only display the "Test" button when a filename beginning with `test_` is the active editor:
```json
"label": "Test",
"options": {
"statusbar": {
"filePattern" : "test_.*"
}
}
```