mirror of
https://github.com/ivuorinen/shellspec-zed.git
synced 2026-03-13 07:02:41 +00:00
b6c1fc76c72817f91494f8e7014ba265c97ebc28
* ci: migrate codeql to composable workflow
* fix: correct codeql workflow language, queries, permissions, and action ref
- Use 'javascript' instead of 'javascript-typescript' for CodeQL language
- Add queries: security-and-quality parameter
- Set root-level permissions to {}
- Add job-level permissions (actions, contents, packages, security-events)
- Pin action ref to commit hash with version comment
- Fix mangled cron schedule
Zed ShellSpec Extension
Language support for ShellSpec BDD testing framework in Zed editor.
Features
- Syntax highlighting for ShellSpec DSL keywords
- Smart indentation for nested test blocks
- Code outline navigation
- Bracket matching and auto-completion
- Test execution integration
Installation
- Install via Zed's extension gallery (when published)
- Or manually: clone to
~/.config/zed/extensions/shellspec/
File Types
Automatically detects files with:
*_spec.sh*.spec.sh
Usage
Test Execution
Use Zed's task system to run tests:
{
"tasks": {
"shellspec-test": {
"label": "Run ShellSpec Test",
"command": "shellspec",
"args": ["$ZED_RELATIVE_FILE"],
"cwd": "$ZED_WORKTREE_ROOT"
},
"shellspec-all": {
"label": "Run All Tests",
"command": "shellspec",
"cwd": "$ZED_WORKTREE_ROOT"
}
}
}
Language Server
Uses bash-language-server for shell script features. Install with:
npm install -g bash-language-server
Contributing
Issues and PRs welcome at https://github.com/ivuorinen/shellspec-zed
License
MIT
Languages
Scheme
100%