feat(editors/vscode): add VS Code extension with syntax highlighting, snippets, and CI#12
Merged
Conversation
…e extension metadata
…ple code structure
…tion for build checks
…roject code and dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
editors/vscode), implementing syntaxhighlighting via TextMate grammar, code snippets, language configuration, and packaging/validation
scripts.
.gfs/.gfpfiles.Key changes:
galfus.tmLanguage.json): reworked all rules to use proper TextMatescopes (
storage.type,entity.name.function,entity.name.type,variable.language, etc.);added
declarationsgroup that highlightsfn/struct/enum/choice/constraint/type/var/consttogether 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.json): fixedlineCommentfrom invalidobject form to plain string
"//"(was silently rejected by VS Code); added backtick as anauto-closing/surrounding pair.
snippets/galfus.json): 10+ snippets coveringfn,struct,enum,choice,constraint,type,if/else,for,match,typeof, andtransaction.scripts/check.ts,scripts/pack.ts): validation script that loads the grammarand asserts scope tokens against fixture files; packaging script that wraps
vsce..github/workflows/editors-ci.yml): workflow that runs grammar validation on every pushand PR touching
editors/vscode/**.assets/and copied intoeditors/vscode/assets/forthe extension marketplace icon.
.bun-versionpinned at the repo root for consistent tooling.Linked Issues
Change Type
changelog:breakingchangelog:featurechangelog:fixchangelog:refactorchangelog:performancechangelog:docschangelog:internal(exclude from public changelog)User-facing Changelog Note
Risks / Rollback