Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Aitomatic Logo

Dana Language Extension for VS Code

Quick installation scripts for Dana Language Support in VS Code.

🚀 Quick Install

macOS/Linux

./bin/vscode/install.sh

Windows

bin\vscode\install.bat

🗑️ Uninstall

macOS/Linux

./bin/vscode/uninstall.sh

📋 Prerequisites

Note: The extension automatically detects and uses the local bin/dana CLI when you're in the Dana project, otherwise it looks for dana in your PATH.

✨ What You Get

After installation:

  • .na files recognized as Dana language
  • ✅ Syntax highlighting for Dana code (keywords, strings, comments)
  • F5 to run Dana files instantly
  • ✅ Right-click "Run Dana File" command
  • ✅ Smart Dana CLI detection (local bin/dana or PATH)
  • ✅ Welcome messages and helpful tips

🔧 Manual Installation

If the scripts don't work, you can install manually:

  1. Navigate to the extension directory:

    cd dana/integrations/vscode
  2. Install dependencies and build:

    npm install
    npm run compile
    npx vsce package --allow-missing-repository
  3. Install the generated .vsix file:

    code --install-extension dana-language-*.vsix

🐛 Troubleshooting

"dana command not found":

  • If working in the Dana project: Make sure bin/dana exists and is executable
  • If working elsewhere: Make sure Dana CLI is installed and in your PATH

"npm not found": Install Node.js from nodejs.org.

"code not found": Install command line tools via Command Palette → "Shell Command: Install 'code' command in PATH"

Extension not working: Try restarting VS Code after installation.

F5 runs wrong Dana: The extension prioritizes bin/dana in the workspace root, then falls back to PATH.

📁 Files Created

The installation creates extension files in ~/.vscode/extensions/aitomatic.dana-language-*

No other system modifications are made.

🔄 Updates

To update the extension:

  1. Pull latest changes from the repository
  2. Run the install script again
  3. The new version will replace the old one

Copyright © 2025 Aitomatic, Inc. Licensed under the MIT License.
https://aitomatic.com