Giter Club home page Giter Club logo

vscode-teal's Introduction

Teal for Visual Studio Code Build Status

Provides IntelliSense and syntax highlighting for Teal in Visual Studio Code.

Requirements

Make sure that the Teal compiler (v0.12.0 or later) is available in your PATH:

luarocks install tl

Installing

Download this extension from the VS Code Extension Marketplace or the Open VSX Registry.

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 record name ... end
grec Global record definition global record name ... end
lenu Local enum definition local enum name ... end
genu Global enum definition global enum name ... end

FAQ

'Module not found' errors

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/"
    }
}

[Error] messages at the bottom right of the screen

Make sure you are using the latest version of the tl compiler. If upgrading tl does not fix the problem, then please create an issue.

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.

vscode-teal's People

Contributors

pdesaulniers avatar dependabot[bot] avatar kdserra avatar nebulavenus avatar factubsio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.