Releases: sailshq/language-tools
Releases · sailshq/language-tools
Release list
v0.6.0
🚀 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
v0.4.1
What changed
Fixed case insensitive validation of models #83 by @DominusKelvin
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's Changed
- fix(language-server): model attributes completion & validation for top-level query modifiers by @DominusKelvin in #73
- [feat] implement model attribute go to definition by @DominusKelvin in #75
- [feat] go to helper input by @DominusKelvin in #77
- feat(validation): improve required input validation logic for helper inputs by @DominusKelvin in #79
- feat(completion): enhance input completion item properties handling by @DominusKelvin in #81
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- fix(language-server): skip redirects and external URLs in go-to action by @DominusKelvin in #53
- fix: enhance type validation to reduce false positives in data type checks by @DominusKelvin in #60
- Feat/es6 shorthand helper validation by @DominusKelvin in #63
- feat: add model verification to prevent Array.find() false positives by @DominusKelvin in #64
- fix(language-server): improve nesting depth calculation for model attribute properties by @DominusKelvin in #66
- Feat/fix go to page and view by @DominusKelvin in #67
- fix go to action object syntax by @DominusKelvin in #68
- [feat] respect waterline modifiers by @DominusKelvin in #69
- fix(language-server): exclude known globals from model validation checks by @DominusKelvin in #70
- Feat/update model attributes autocompletion by @DominusKelvin in #71
Full Changelog: v0.2.5...v0.3.0
v0.2.5
What's Changes
- Fixed issue with creating routes mapping to action for routes that are redirects #52 by @DominusKelvin
Full Changelog: v0.2.4...v0.2.5
v0.2.4
What's Changed
- fix(language-server): return empty array instead of null for go-to definition handlers by @DominusKelvin in #49
- feat(language-server): add missing Waterline query predicates (or, and, not) by @DominusKelvin in #51
Full Changelog: v0.2.3...v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
What's Changed
- Feat/fix issue with clashing autocomplete by @DominusKelvin in #31
- fix(language-server): add acorn and acorn-walk for improved parsing of models by @DominusKelvin in #32
- [feat] model attribute diagnostic not working by @DominusKelvin in #34
- [feat] add validation for in a view exist by @DominusKelvin in #35
- feat(language-server): add helpers completion functionality by @DominusKelvin in #36
- [feat] add support for helper inputs auto complete by @DominusKelvin in #40
- [feat] support diagnostic for helper input by @DominusKelvin in #43
- [feat] add diagnostic for validating required input in helper by @DominusKelvin in #44
- [feat] diagnostic for missing required model attribute by @DominusKelvin in #46
- [fix] bug with helper go to definition with by @DominusKelvin in #47
Full Changelog: v0.1.0...v0.2.0