Templates 0.4.0: context-gated statement/item snippet completion
A template tier between index names and keywords: if / if-else / else-if (gated on the line head, so it appears after end but not after an identifier), case and casez with default, loops, always_ff (plain and reset variants), always_comb, always @(...), initial, and declaration templates - logic/localparam/parameter in .sv, wire/reg/integer twins in .v; pathless buffers get the conservative Verilog set. One renderer spells each body as snippet and plain text so the two cannot drift, and a registry-wide test parses every untouched expansion. Nine overlapping static VS Code snippets moved server-side; file-level ones stay static. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
ab89152264
commit
e9b7510ca4
18 files changed
+1872
-149
No files matched your search
@@ -108,6 +108,16 @@ the work is reviewed**. Owner-priority items first (2026-08-24).
|
||||
- [x] **Version 0.3.0** — workspace + extension bump with a CHANGELOG entry
|
||||
covering the whole refactoring layer (M1–M5) → M5
|
||||
|
||||
### Templates (owner request, 2026-08-24 night)
|
||||
- [x] **Statement/item template completion** — context-gated snippet items
|
||||
from the server (both editors): `if`/`if-else`/`else-if`, `case` with
|
||||
`default`, `always_ff`/`always_comb`/`always @(...)`, `for`/`while`,
|
||||
`initial`, declarations (`logic x;`-style), each with tabstops (condition
|
||||
first, then body) → `docs/features/completion-templates/README.md` (M6)
|
||||
- [x] **Reconcile with the static VS Code snippets** — no prefix offered
|
||||
twice; file-level templates (module, tb, FSM) stay static → M6
|
||||
- [x] **Version 0.4.0** → M6
|
||||
|
||||
### Structural refactorings (backlog, post-M4)
|
||||
- [ ] **Extract module** from a selected statement range (infer ports from
|
||||
read/driven sets) — the flagship, hardest one
|
||||
@@ -198,7 +208,8 @@ commit — in order:
|
||||
- [x] M3 refactor-ports — done, QA clean after one rework round, reviewed
|
||||
- [x] M4 refactor-instantiate — done, QA clean after one rework round, reviewed
|
||||
- [x] M5 completion-core — done, QA clean first pass, reviewed
|
||||
- [ ] Backlog triage after M5
|
||||
- [x] M6 completion-templates — done, QA clean first pass, reviewed
|
||||
- [ ] Backlog triage after M6
|
||||
|
||||
## Work log
|
||||
|
||||
|
||||
Reference in new issue
Block a user