vscode-teal icon indicating copy to clipboard operation
vscode-teal copied to clipboard

Add support for Lua files

Open pdesaulniers opened this issue 4 years ago • 5 comments

Right now, the extension only checks .tl files. It could also check .lua files in 'lax' mode.

pdesaulniers avatar Apr 04 '20 21:04 pdesaulniers

For the time being, I think luacheck is more useful than tl at verifying plain Lua code.

Once https://github.com/teal-language/tl/issues/89 is implemented, we might be able to use tl check as a luacheck replacement.

pdesaulniers avatar Apr 28 '20 16:04 pdesaulniers

Just a note, that this is excellent for general lua programming: https://marketplace.visualstudio.com/items?itemName=sumneko.lua

tommitytom avatar Aug 10 '20 01:08 tommitytom

You're right, it's very good! I was still using https://github.com/trixnz/vscode-lua, which is much less feature-rich...

pdesaulniers avatar Aug 10 '20 12:08 pdesaulniers

A further note on the previously mentioned extension, this is an interesting development:

https://github.com/sumneko/lua-language-server/wiki/Annotations https://github.com/sumneko/lua-language-server/wiki/Plugins

tommitytom avatar Nov 09 '22 01:11 tommitytom

It seems like tree-sitter-teal grammar doesn't support lua files and generates wrong tokens, so intellisense won't work correctly

dipyalov avatar Jan 13 '24 01:01 dipyalov