Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3.5 KiB
Executable File
3.5 KiB
Executable File
JQHTML VSCode Extension Setup
Overview
The JQHTML VSCode extension is now integrated into the RSpade development environment alongside the RSpade extension. Both extensions are automatically installed and updated through the IDE setup scripts.
Installation
Automatic Installation
- The JQHTML extension is installed as an NPM dependency:
@jqhtml/vscode-extension - When you run VS Code tasks or open the project, the setup script checks for both extensions
- If either extension is missing or outdated, they are automatically installed (if auto-install is enabled)
Manual Installation
If auto-install is disabled or fails:
- Press
Ctrl+Shift+Xin VS Code to open Extensions - Click the
...menu → "Install from VSIX..." - For RSpade: Select
app/RSpade/Extension/rspade-framework.vsix - For JQHTML: Select
node_modules/@jqhtml/vscode-extension/jqhtml-vscode-extension-*.vsix
Configuration
Settings
The following settings in .vscode/settings.json control extension behavior:
rspade.autoCheckExtension- Whether to check for extension updates (default: true)rspade.autoInstallExtension- Whether to auto-install/update extensions (default: true)
Extension Locations
- RSpade Extension:
/app/RSpade/Extension/rspade-framework.vsix - JQHTML Extension:
/node_modules/@jqhtml/vscode-extension/jqhtml-vscode-extension-*.vsix
How It Works
Check Process
- The setup script (
/.vscode/ide_setup/check_setup.sh) runs on VS Code startup - It checks for both RSpade and JQHTML extensions
- Compares installed versions with expected versions from:
- RSpade:
app/RSpade/Extension/package.json - JQHTML:
node_modules/@jqhtml/vscode-extension/package.json
- RSpade:
Update Process
- If extensions need updating and auto-install is enabled:
- Installs RSpade extension from local VSIX
- Installs JQHTML extension from npm package VSIX
- Creates marker file
.extensions-updatedto trigger VS Code reload - VS Code automatically reloads to activate the updated extensions
Features Provided by JQHTML Extension
- Syntax Highlighting: Full syntax highlighting for
.jqhtmltemplate files - Code Snippets: Quick snippets for common JQHTML patterns
- Language Support: Proper language configuration for JQHTML templates
- IntelliSense: Auto-completion for JQHTML tags and attributes
Updating the JQHTML Extension
To update to a newer version:
npm update @jqhtml/vscode-extension
The next time VS Code starts, it will detect the new version and auto-install it.
Troubleshooting
Extension Not Installing
- Check that the VSIX file exists:
ls -la node_modules/@jqhtml/vscode-extension/*.vsix - Ensure VS Code CLI is available:
code --version - Check the setup script output for specific errors
Version Mismatch
If the extension shows as outdated:
- Run
npm update @jqhtml/vscode-extension - Restart VS Code to trigger the update check
- Or manually install from the VSIX file
Disable Auto-Install
To disable automatic extension installation, add to .vscode/settings.json:
{
"rspade.autoInstallExtension": false
}
Integration with RSpade Extension
Both extensions work together:
- RSpade Extension: Provides RSX framework support, PHP formatting, namespace management
- JQHTML Extension: Provides JQHTML template support, syntax highlighting, snippets
The setup script handles both extensions in a single update cycle, minimizing VS Code reloads.