Glyph for VS Code
Syntax highlighting and the Glyph language server for .glyph files.
Glyph is a statically typed language that compiles to
TypeScript, built so code an AI agent writes can be read, checked and changed without guessing.
Setup
Install the extension from the Marketplace, either from the Extensions view
(search for "Glyph (glyphlang.io)") or from the Quick Open box (Ctrl+P / Cmd+P):
ext install chadetov.glyph-vscode
It needs the glyph binary, which carries the language server:
npm install -g @glyphlang/glyph
Open any .glyph file and it starts. If the binary is not on your PATH, point
the extension at it:
{ "glyph.serverPath": "/absolute/path/to/glyph" }
What you get
Highlighting. The TextMate grammar is generated from the compiler's own
keyword table rather than maintained by hand, so a keyword the compiler knows is
a keyword the editor colours. It covers declarations, control flow, the
primitive types including int and bigint, operators, ${...} interpolation,
annotations, member access, and it scopes a variant constructor differently from
a type, so Some(x) in a match arm does not read as an annotation.
Language server. The extension runs glyph lsp and gives you diagnostics
with their E0xxx codes, hover types, go-to-definition following imports across
modules, workspace-wide find-references and rename, completion, document and
workspace symbols, inlay hints, code actions, and formatting in the canonical
glyph fmt layout.
What it does not do yet
The server runs Glyph's own analysis and does not run tsc. Errors that only
TypeScript catches therefore do not appear while you type; they arrive at
glyph build.
Member completion after . is not implemented.
Settings
| Setting |
Default |
What it does |
glyph.serverPath |
glyph |
Path to the glyph binary the extension runs as glyph lsp. |
Links
Website ·
Playground ·
Source ·
Issues
License
MIT or Apache-2.0, at your option.