https://github.com/alcarney/vscode-task
Running VSCode task definitions from within Emacs
https://github.com/alcarney/vscode-task
Last synced: 2 months ago
JSON representation
Running VSCode task definitions from within Emacs
- Host: GitHub
- URL: https://github.com/alcarney/vscode-task
- Owner: alcarney
- License: gpl-3.0
- Created: 2021-01-04T19:21:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-04T19:26:34.000Z (over 4 years ago)
- Last Synced: 2025-01-29T22:03:49.547Z (4 months ago)
- Language: Emacs Lisp
- Size: 235 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-task.el
An attempt at writing some Elisp code that makes it easy to select and run
pre-defined [VSCode tasks][tasks.json] from within an Emacs session.Builds on `project.el` for task discovery
## Usage

The main entry point is a function `vscode-task-run`, you may want to bind it to
a key sequence``` elisp
(global-set-key (kbd "C-c p t") 'vscode-task-run)
```## Features
It currently only supports the simplest of task definitions.
``` json
{
"tasks": [
{
"label": "Task Name",
"type": "shell",
"command": "some-command"
}
]
}
```## Limitations
This package cannot parse the full syntax of VSCode's `tasks.json` file as
VSCode accepts a less strict JSON syntax which can include comments and trailing
commas. In order for this package to read the file correctly these syntax
extensions must be removed.[tasks.json]: https://code.visualstudio.com/docs/editor/tasks#_custom-tasks