Language support for Tya. Provides
TextMate syntax highlighting plus a LSP-based language client that talks to
tya lsp (shipped with the tya compiler since v0.52).
Requirements
- VS Code 1.75 or later
tyav0.52 or later onPATH(or configuretya.executable)
Features (v0.72.1)
- LSP diagnostics on save / on change, covering
tya check-style errors andtya lint-style warnings - Format on save for
.tyafiles by default - TextMate syntax highlighting for
.tya textDocument/formattingandtextDocument/rangeFormattingtextDocument/hover— function signatures + leading doc commentstextDocument/definition— cross-file viaimporttextDocument/referencestextDocument/renametextDocument/codeAction— TYAL0001 / TYAL0003 quick fixestextDocument/semanticTokens/fulltextDocument/documentSymbolworkspace/symbol
Install
Install Tya from the Visual Studio Marketplace or Open VSX.
Manual install
Download tya-0.72.1.vsix from:
https://github.com/komagata/tya/releases/tag/editors-vscode-v0.72.1
Then install it:
code --install-extension tya-0.72.1.vsix
Or build it locally:
cd editors/vscode
npm install
npm run compile
npx vsce package
code --install-extension tya-0.72.1.vsix
Settings
tya.executable(defaulttya) — path to the tya LSP server.tya.trace.server(off/messages/verbose) — LSP trace verbosity.
The extension contributes these language defaults for .tya files:
{
"[tya]": {
"editor.defaultFormatter": "komagata.tya",
"editor.formatOnSave": true
}
}
When tya.executable is left at the default, the extension checks common
user-local, version-manager, and Homebrew locations, then uses the newest
working tya it finds before falling back to tya on PATH.