3.7 KiB
QuestLang VS Code Extension - Manual Installation Guide
This guide explains how to manually install the QuestLang syntax highlighting extension without using the VS Code Extensions Marketplace.
Prerequisites
- Visual Studio Code installed on your system
- Access to the extension files (this directory)
Installation Methods
Method 1: Install from VSIX Package
If you have a .vsix package file:
- Open VS Code
- Open the Command Palette (
Ctrl+Shift+Pon Windows/Linux,Cmd+Shift+Pon macOS) - Type
Extensions: Install from VSIX...and select it - Browse to the
.vsixfile location and select it - VS Code will install the extension automatically
- Restart VS Code if prompted
Method 2: Copy to Extensions Directory
If you want to install directly from source files:
-
Find your VS Code extensions directory:
- Windows:
%USERPROFILE%\.vscode\extensions\ - macOS:
~/.vscode/extensions/ - Linux:
~/.vscode/extensions/
- Windows:
-
Create the extension directory:
mkdir ~/.vscode/extensions/questlang-syntax-highlighting -
Copy extension files: Copy all files from this directory to the newly created extension directory:
package.jsonlanguage-configuration.jsonsyntaxes/questlang.tmLanguage.json- Any other configuration files
-
Restart VS Code to load the extension
Method 3: Symbolic Link (Development)
For development purposes, you can create a symbolic link:
-
Navigate to your VS Code extensions directory:
cd ~/.vscode/extensions/ -
Create a symbolic link to this extension directory:
ln -s /path/to/questlang/vscode-extension questlang-syntax-highlighting -
Restart VS Code
Building VSIX Package (Optional)
If you want to create a .vsix package for easier distribution:
-
Install vsce (Visual Studio Code Extension manager):
npm install -g vsce -
Navigate to the extension directory:
cd /path/to/questlang/vscode-extension -
Package the extension:
vsce package -
This will create a
.vsixfile that can be installed using Method 1
Verification
After installation, verify that the extension is working:
-
Open VS Code
-
Create a new file with
.qlextension (e.g.,test.ql) -
Add some QuestLang code:
квест TestQuest; цель "Test quest"; граф { узлы { старт: { тип: начальный; описание: "Test description"; } } } конец; -
Check that syntax highlighting is applied (keywords should be colored)
Troubleshooting
Extension not loading
- Make sure all files are copied correctly
- Check that
package.jsonis valid JSON - Restart VS Code completely
- Check VS Code's Developer Console (
Help > Toggle Developer Tools) for errors
Syntax highlighting not working
- Verify the file has
.qlextension - Check that
syntaxes/questlang.tmLanguage.jsonexists and is valid - Ensure the language configuration is correct in
package.json
Permission issues
- Make sure you have write permissions to the extensions directory
- On macOS/Linux, you might need to use
sudofor system-wide installation
Uninstallation
To remove the manually installed extension:
- Navigate to your VS Code extensions directory
- Delete the
questlang-syntax-highlightingdirectory (or whatever you named it) - Restart VS Code
Support
If you encounter any issues with manual installation, please check:
- VS Code version compatibility
- File permissions
- Extension file integrity
- VS Code error logs