2.5 KiB
2.5 KiB
Installation Guide for ASHES Language Support Extension
Quick Installation
-
Copy the extension folder to your VS Code extensions directory:
- Linux:
~/.vscode/extensions/ - macOS:
~/.vscode/extensions/ - Windows:
%USERPROFILE%\.vscode\extensions\
- Linux:
-
Rename the folder to
ashes-language-support-0.1.0(or similar) -
Reload VS Code or restart the application
-
Test the extension by opening any
.escfile
Alternative Installation (Development Mode)
-
Open VS Code in the extension directory:
cd vscode-extension code . -
Press F5 to run the extension in a new Extension Development Host window
-
Open a .esc file in the new window to test the extension
Building from Source
-
Install dependencies:
npm install -
Compile TypeScript:
npm run compile -
Package the extension (optional):
npx vsce package
Testing the Extension
- Open the sample file:
sample.escin the extension directory - Check syntax highlighting: Events, commands, and variables should be colorized
- Test auto-completion: Type
say(and pressCtrl+Space - Test snippets: Type
eventand pressTab - Test hover: Hover over commands like
sayorset_global - Test command reference: Press
Ctrl+Shift+Pand type "ASHES: Show Command Reference"
Features to Test
- ✅ Syntax highlighting for events (
:event_name) - ✅ Syntax highlighting for commands (
say,set_global, etc.) - ✅ Syntax highlighting for variables (
var,global) - ✅ Syntax highlighting for dialog blocks (
?!) - ✅ Auto-completion for commands
- ✅ Auto-completion for built-in variables
- ✅ Code snippets for common patterns
- ✅ Hover information for commands
- ✅ Smart indentation
- ✅ Code folding for events
Troubleshooting
Extension not loading
- Check that the folder is in the correct extensions directory
- Restart VS Code completely
- Check the Developer Console for errors (
Help > Toggle Developer Tools)
Syntax highlighting not working
- Make sure the file has a
.escextension - Check that the language is set to "ASHES" in the bottom-right corner of VS Code
Auto-completion not working
- Press
Ctrl+Spaceto manually trigger completion - Check that the extension is activated (should show in the Extensions panel)
Uninstalling
Simply delete the extension folder from your VS Code extensions directory and restart VS Code.