Vela Language Support
This extension provides language support for the Vela programming language in Visual Studio Code.
Features
- File Recognition: Automatically recognizes
.vela files
- Custom File Icons: Displays the Vela icon for
.vela files using the provided vela-exact.svg
- Syntax Highlighting: Provides syntax highlighting for Vela keywords, strings, numbers, and comments
- Language Mode: Assigns the Vela language mode to
.vela files
Supported Keywords
The extension provides syntax highlighting for the following Vela keywords:
- Control Flow:
if, else, for, while, return, break, continue
- Declarations:
let, const, var
- Components:
site, page, hero, section, card, button, footer, theme, var, state, function, class, component
Installation
From VSIX
- Download the
.vsix file
- Open VS Code
- Go to Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
- Click on the "..." menu at the top of the Extensions view
- Select "Install from VSIX..."
- Choose the downloaded
.vsix file
From Source
- Clone this repository
- Run
npm install to install dependencies
- Run
npm run compile to compile the extension
- Press F5 to open a new VS Code window with the extension loaded
Building
To build the extension:
npm install
npm run compile
Packaging
To package the extension for distribution:
npm install -g @vscode/vsce
vsce package
This will create a .vsix file that can be installed in VS Code.
Publishing
To publish the extension to the VS Code Marketplace:
- Create a publisher account at https://marketplace.visualstudio.com/
- Get a Personal Access Token from Azure DevOps
- Run
vsce login <publisher-name>
- Run
vsce publish
For more information, see the VS Code Extension Publishing Guide.
Requirements
- Visual Studio Code version 1.80.0 or higher
Extension Settings
This extension does not contribute any VS Code settings.
Known Issues
None at this time.
Release Notes
0.0.1
Initial release of Vela Language Support:
- Basic syntax highlighting
- File icon support
- Language configuration (comments, brackets, auto-closing pairs)
License
See LICENSE file for details.