Skip to content

feat(editors/vscode): add VS Code extension with syntax highlighting, snippets, and CI#12

Merged
Morbden merged 10 commits into
mainfrom
feat/extension-vscode
Jul 17, 2026
Merged

feat(editors/vscode): add VS Code extension with syntax highlighting, snippets, and CI#12
Morbden merged 10 commits into
mainfrom
feat/extension-vscode

Conversation

@Morbden

@Morbden Morbden commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds the initial VS Code extension for Galfus Script (editors/vscode), implementing syntax
    highlighting via TextMate grammar, code snippets, language configuration, and packaging/validation
    scripts.
  • Needed to give developers first-class editor support when working with .gfs/.gfp files.

Key changes:

  • Grammar overhaul (galfus.tmLanguage.json): reworked all rules to use proper TextMate
    scopes (storage.type, entity.name.function, entity.name.type, variable.language, etc.);
    added declarations group that highlights fn/struct/enum/choice/constraint/type/var/const
    together with the declared name; added backtick string, spread operator (...), arrow (=>),
    null-coalescing (??) and improved number regex (supports underscores and scientific notation);
    fixed pattern priority order so operators no longer shadow keywords.
  • Language configuration (language-configuration.json): fixed lineComment from invalid
    object form to plain string "//" (was silently rejected by VS Code); added backtick as an
    auto-closing/surrounding pair.
  • Snippets (snippets/galfus.json): 10+ snippets covering fn, struct, enum, choice,
    constraint, type, if/else, for, match, typeof, and transaction.
  • Scripts (scripts/check.ts, scripts/pack.ts): validation script that loads the grammar
    and asserts scope tokens against fixture files; packaging script that wraps vsce.
  • CI (.github/workflows/editors-ci.yml): workflow that runs grammar validation on every push
    and PR touching editors/vscode/**.
  • Assets: brand and icon PNGs added to assets/ and copied into editors/vscode/assets/ for
    the extension marketplace icon.
  • .bun-version pinned at the repo root for consistent tooling.

Linked Issues

  • Closes None

Change Type

  • changelog:breaking
  • changelog:feature
  • changelog:fix
  • changelog:refactor
  • changelog:performance
  • changelog:docs
  • changelog:internal (exclude from public changelog)

User-facing Changelog Note

  • Added VS Code extension for Galfus Script with syntax highlighting, code snippets, and automated grammar validation CI.

Risks / Rollback

  • Main risks: grammar regex regressions on edge-case syntax not yet covered by fixtures; marketplace publishing credentials not yet configured.
  • Rollback plan: revert the branch; the extension is not yet published so no user impact.

@github-actions github-actions Bot added size/xl changelog:feature New features and enhancements labels Jul 17, 2026
@Morbden
Morbden merged commit 3fb9cd7 into main Jul 17, 2026
2 checks passed
@Morbden
Morbden deleted the feat/extension-vscode branch July 17, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:feature New features and enhancements size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant