Mana for Visual Studio Code
Official VS Code extension for the Mana programming language.
Features
- Syntax Highlighting - Full syntax highlighting for
.mana files
- Language Server - Code completion, diagnostics, go-to-definition, and more
- Debugging - Integrated debugging with breakpoints and variable inspection
- Commands - Build, run, and test your Mana projects
Requirements
- Mana compiler installed and in PATH
mana-lsp for language server features (included with Mana)
mana-debug for debugging (included with Mana)
Installation
- Install from the VS Code Marketplace
- Or download the
.vsix file and install manually:
code --install-extension mana-lang-1.0.2.vsix
Configuration
| Setting |
Default |
Description |
mana.path |
mana |
Path to Mana compiler |
mana.lspPath |
mana-lsp |
Path to language server |
mana.enableLsp |
true |
Enable language server |
Commands
- Mana: Build Project - Build the current project
- Mana: Run Project - Build and run the project
- Mana: Run Tests - Run all tests
- Mana: Restart Language Server - Restart the LSP
Debugging
Create a .vscode/launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "mana",
"request": "launch",
"name": "Debug Mana",
"program": "${workspaceFolder}/main.mana"
}
]
}
Links
License
MIT
| |