about summary refs log tree commit diff stats
path: root/js/baba-yaga/dev/vscode/install-and-test.sh
blob: bead1372a44c0efd32d0074a0d4c070b6d988c78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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