about summary refs log tree commit diff stats
path: root/js/baba-yaga/dev/vscode/install-and-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'js/baba-yaga/dev/vscode/install-and-test.sh')
-rwxr-xr-xjs/baba-yaga/dev/vscode/install-and-test.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/js/baba-yaga/dev/vscode/install-and-test.sh b/js/baba-yaga/dev/vscode/install-and-test.sh
new file mode 100755
index 0000000..bead137
--- /dev/null
+++ b/js/baba-yaga/dev/vscode/install-and-test.sh
@@ -0,0 +1,41 @@
+#!/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
\ No newline at end of file