Antescofo for VS Code (v0.0.1)
Antescofo tooling for Visual Studio Code offering syntax awareness, navigation helpers, and authoring conveniences for .asco , .antescofo , and .asco.txt scores.
Feature Highlights
Keyboard Shortcuts
All keybindings are scoped to Antescofo documents (Alt on Mac is option !):
Keybinding |
Command |
OSC Payload |
Alt+p |
Antescofo: Play Selection via OSC |
/antescofo/cmd ["playstring", text] |
Alt+s |
Antescofo: Start |
/antescofo/cmd ["start"] |
Alt+c |
Antescofo: Stop |
/antescofo/cmd ["stop"] |
Alt+l |
Antescofo: Load Current Score |
/antescofo/cmd ["score", path] + /antescofo/loadscore [path] (AscoGraph) |
Alt+Shift+s |
Antescofo: Start From Label |
/antescofo/cmd ["startfromlabel", label] |
The commands are also available through the Command Palette (Antescofo: … ).
Installation
Option 1 – Run from Source (recommended for testing)
- Clone or download this repository.
- Install dependencies:
npm install
- Open the folder in VS Code and press F5 to launch an Extension Development Host.
- In the dev host window, open an
.asco file (see Example/ for sample scores) to try the features.
Option 2 – Install as a VSIX
- Build the package:
npm install
npx vsce package
This creates antescofo-<version>.vsix .
- In VS Code, open Extensions → ⋮ → Install from VSIX… and pick the generated file.
- Reload VS Code; the extension activates automatically for Antescofo files.
Usage Tips
- Jump to definitions with
F12 , Cmd/Ctrl+Click , or peek with Alt+F12 .
- Use the Outline (
Cmd/Ctrl+Shift+O ) for fast navigation between directives, macros, and variables.
- Hover/click on
@INSERT "relative/path.asco.txt" to open referenced libraries.
- Saving a file reindexes definitions, but unsaved buffers are also scanned so new symbols are usable immediately.
Configuration
Settings live under the antescofo namespace (Settings UI or settings.json ):
Setting |
Default |
Description |
antescofo.osc.host |
localhost |
Hostname/IP of the Antescofo OSC server. |
antescofo.osc.port |
5678 |
UDP port for Antescofo OSC commands. |
antescofo.ascograph.host |
localhost |
Hostname/IP for AscoGraph notifications (leave empty to disable). |
antescofo.ascograph.port |
6789 |
UDP port for AscoGraph notifications. |
antescofo.osc.appendNewline |
true |
Append \n when sending selections via playstring . |
Configuration is read at execution time, so changes take effect immediately.
Contributing
Development Workflow
- Install dependencies:
npm install .
- Start the Extension Development Host with F5 and keep it running while editing.
- Modify
extension.js , syntaxes/Antescofo.tmLanguage , snippets, or configuration; changes hot-reload in the dev host.
- Optional syntax check:
node --check extension.js .
- Package with
npx vsce package to produce a distributable VSIX.
Updating the Grammar
- Edit
syntaxes/Antescofo.tmLanguage (XML plist).
- Keep regex patterns ASCII-friendly and validate with
xmllint --noout syntaxes/Antescofo.tmLanguage .
- Whenever new directives appear in the core Antescofo sources, mirror them in the grammar and in the regex lists inside
extension.js .
Updating Navigation Features
- Extend the directive or variable regexes in
extension.js to index additional constructs.
- Rebuild the symbol index by saving files or running the “Antescofo: Rebuild Symbol Index” command (if added).
Submitting Changes
- Use descriptive commits (e.g.,
feat: support go-to-definition for dsp variables ).
- Document notable behaviour changes in
CHANGELOG.md .
- Verify navigation and highlighting in the Extension Development Host before opening a pull request.
License
MIT
| |