Skip to content

VS Code extension (compact-0.2.13) snippets use outdated syntax incompatible with current compiler #30

@bytewizard42i

Description

@bytewizard42i

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions