v0.9.0
Features
- Workspace symbol search: The editor's workspace symbol list shows all classes, functions, enums, or other symbol across all your
.wsfiles - Document highlight: Selecting a symbol now highlights every use of that symbol in the current file (rather than the default text-match)
- Parameter name inlay hints: Call sites now show the parameter name each argument fills, so you can read which value goes where without opening the signature;
outparameters are marked, and the hint is hidden when the names already match - Collapse/expand
switch: With the cursor on aswitch,case, ordefault, a code action collapses every case onto one line or expands each onto its own - Collapse/expand
if/else: The same code action is now available forif/elsechains - New warning when a
statedeclares an owner class that is not markedstatemachine, with an error when the owner is not a class at all - New error for
private,protected, orpublicmodifiers on struct properties, which WitcherScript does not allow
Bug fixes
- The server no longer deadlocks on startup when you have many editor tabs open
- A
switcharm with a trailing//comment no longer gets split across multiple lines - A blank line is no longer inserted above a comment sitting between two statements
- A comment between
else ifand its condition is no longer pulled inside the parentheses - Consecutive single-line
@addFielddeclarations no longer get a blank line forced between them - Collapsing or expanding a
switchnow copies the case bodies verbatim instead of reformatting them
What's Changed
- Fix formatter splitting adjacent @addField declarations by @webspam in #204
- Flag accessibility modifiers on struct properties by @webspam in #205
- Add parameter name inlay hints at call sites by @webspam in #206
- Follow-up on #206: Simplify setting name by @webspam in #207
- Remove README bloat by @webspam in #208
- Add code action to toggle switch case layout by @webspam in #209
- Add if/else layout code refactoring rewrite by @webspam in #210
- Upgrade Rust edition to 2024 by @webspam in #211
- Enable clippy pedantic and clear the backlog by @webspam in #212
- Store types as structured data instead of strings by @webspam in #213
- Add regression tests for signature help type rendering by @webspam in #214
- Just update justfile by @webspam in #215
- Replace magic strings with constants and unify CST traversal by @webspam in #216
- Bump grammar to v0.16.0 by @webspam in #217
- Fix clippy format_collect & CODESTYLE exception by @webspam in #218
- Fix silent data loss from narrowing integer casts by @webspam in #219
- Add workspace symbol search by @webspam in #220
- Validate state owner declarations by @webspam in #221
- Add document highlight for symbols by @webspam in #222
- Fix formatter bugs with comments by @webspam in #223
- Fix startup deadlock with many open tabs by @webspam in #224
- Version 0.9.0 by @webspam in #225
Full Changelog: v0.8.0...v0.9.0