The VS Code extension (v0.2.13) bundled snippets reference pre-0.20 Compact syntax that won't compile with the current compiler (0.29.0 / language >= 0.20):
| Snippet |
Current Output |
Should Be |
pragma |
pragma 0.8.6; |
pragma language_version >= 0.20; |
ledger |
ledger x: Cell[Field]; |
ledger x: Field; (no Cell<T> wrapper) |
assert |
assert a "msg"; |
assert(a, "msg"); |
compact (new file template) |
ledger { } block syntax |
Module-level ledger declarations |
The syntax highlighting, problem matchers, and file icon all work great. Just the code snippets in compact.code-snippets need updating to match the current language syntax.
Environment:
- Compact compiler: 0.29.0
- Language version: 0.21.0
- Extension version: 0.2.13
- Editor: VS Code / Windsurf on WSL (Ubuntu)
Thank you for the excellent tooling!