π New Features
Command Palette Generators
Run Sails generators directly from VS Code's Command Palette (Cmd/Ctrl + Shift + P):
- Sails: Generate Action - Create a new action at
api/controllers/ - Sails: Generate Model - Create a new model at
api/models/ - Sails: Generate Helper - Create a new helper at
api/helpers/ - Sails: Generate Hook - Create a new hook
- Sails: Generate Response - Create a custom response at
api/responses/ - Sails: Generate Adapter - Create a custom adapter at
api/adapters/
Quick Fix for Missing Actions & Models
When you reference an action or model that doesn't exist, the extension now offers a quick fix to generate it automatically.
Auto-Refresh on File Changes
The language server now automatically refreshes validation when files are created, deleted, or renamed in api/ and config/ directories. No more stale errors!
π Bug Fixes
- Fixed cascade validation error where all routes showed "action not found" when only one was missing (#95)
- Fixed action existence validation to properly detect missing action files (#105)
- Removed circular devDependency in language-server package
π§ Internal Improvements
- Refactored code actions with factory pattern for extensibility
- Added file watchers for real-time validation updates (#97)
- Fixed rspack config for absolute output path
Pull Requests
- #105 - feat: Command Palette generators with middleware
- #104 - feat: Add generators for helper, action, model, and hook
- #102 - feat: Quick fix for missing models
- #99 - feat: Quick fix for missing actions
- #97 - feat: Auto-refresh on file create/delete
- #95 - fix: Action validation cascade error
Contributors
Full Changelog: v0.5.2...v0.6.0