-
Open the extension folder in VSCode:
cd packages/vscode code .
-
Build the extension:
bun run build
-
Press F5 or go to Run > Start Debugging
- This will open a new VSCode window with the extension loaded
- The window title will show
[Extension Development Host]
-
Test the extension:
- Open or create a
.stxfile - Type
@to see auto-completion - Hover over directives to see documentation
- Try creating unclosed directives to see diagnostics
- Open or create a
-
Build the extension:
cd packages/vscode bun run build -
Package the extension:
bun run package
This creates a
.vsixfile in the current directory. -
Install via VSCode UI:
- Open VSCode
- Go to Extensions (Cmd+Shift+X or Ctrl+Shift+X)
- Click the
...menu at the top right - Select "Install from VSIX..."
- Navigate to
packages/vscode/and select the.vsixfile
-
Add
codeto PATH (if not already):- Open VSCode
- Press Cmd+Shift+P (or Ctrl+Shift+P)
- Type "shell command"
- Select "Shell Command: Install 'code' command in PATH"
-
Install the extension:
cd packages/vscode code --install-extension vscode-stacks-0.1.12.vsix
- Type
@→ See all directives - Type
@for→ Get smart snippet with placeholders - Type
@include('→ Get path suggestions - Type
@transition(→ Get parameter suggestions
- Hover over
@if→ See documentation - Hover over
@transitionparameters → See parameter docs - Hover over CSS classes → See CSS definitions
- Type
@if(true)without@endif→ See warning - Type
@if(true)then@endfor→ See mismatch error - Fix the errors and see diagnostics clear
- Type
@include('→ See available templates - Type
@component('→ See available components - Navigate directories with
/
- Extension not loading? Check the Debug Console for errors
- Build errors? Run
bun installfirst - Changes not showing? Rebuild with
bun run buildand reload the extension development host window