Skip to content

Teal language support for Visual Studio Code

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE-vscode-extension-samples
Notifications You must be signed in to change notification settings

Lurenlzm/vscode-teal

 
 

Repository files navigation

Teal for Visual Studio Code

Node.js CI

Provides a language server and syntax highlighting for Teal in Visual Studio Code.

Features

  • Syntax highlighting
  • Error checking
  • Snippets

Requirements

Make sure that the Teal compiler is available in your PATH:

luarocks install tl

Installing

This extension is available in the VS Code Extension Marketplace.

Snippets

Trigger Name Body
req Local require local name = require("module")
loc Local variable local name = value
fori ipairs loop for k, v in ipairs(sequence) do ... end
forp pairs loop for k, v in pairs(table) do ... end
lrec Local record definition local name = record ... end
grec Global record definition global name = record ... end
lenu Local enum definition local name = enum ... end
genu Global enum definition global name = enum ... end

FAQ

The module search path is wrong!

By default, this extension runs tl check at the root of the workspace.

If your code resides in subdirectories (such as src/ or lib/), you need to add the directories to tlconfig.lua at the root of the workspace:

return {
    include_dir = {
        "src/",
        "lib/"
    }
}

Changelog

See CHANGELOG.md for release notes.

Contributors

Contributions are greatly appreciated! Feel free to fork this repository and open a pull request on GitHub.

About

Teal language support for Visual Studio Code

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE-vscode-extension-samples

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.5%
  • Lua 4.5%