#!/bin/bash echo "๐Ÿ”ง Building and installing Baba Yaga VS Code extension..." # Build the extension echo "๐Ÿ“ฆ Packaging extension..." npx vsce package --out baba-yaga-latest.vsix if [ $? -eq 0 ]; then echo "โœ… Extension packaged successfully" # Install the extension echo "๐Ÿš€ Installing extension in VS Code..." code --install-extension baba-yaga-latest.vsix --force if [ $? -eq 0 ]; then echo "โœ… Extension installed successfully" echo "" echo "๐Ÿงช To test markdown highlighting:" echo "1. Open MARKDOWN_TEST.md in VS Code" echo "2. Check if Baba Yaga code blocks have syntax highlighting" echo "3. If not, try 'Developer: Reload Window' (Ctrl+Shift+P)" echo "" echo "๐Ÿ“‹ Extension features:" echo "- Syntax highlighting for .baba files" echo "- Syntax highlighting in markdown code blocks" echo "- Improved comment handling in diagnostics" echo "- Support for typed curried functions" echo "" echo "๐Ÿ” Troubleshooting:" echo "- Check extension is enabled in Extensions panel" echo "- Verify markdown files show 'Markdown' in bottom right" echo "- Try opening a .baba file to ensure basic highlighting works" else echo "โŒ Failed to install extension" exit 1 fi else echo "โŒ Failed to package extension" exit 1 fi