You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some custom lua implementations use filetypes other than .lua, like Defold which has it's own .script extension to differenciate a lua module from a lua game script. However both are just lua scripts.
The Teal lsp works wonderfullly on vscode, you just need to associate .script to .lua. However the cyan build command only outputs .lua files. A rename parameter should be added to tlconfig that accepts an input regex and output string. And replace the regex input with a string output to allow for custom file extensions.
(The following was done on the main tl repository)
Now, this is just an idea. In my use case i only needed to add this code to the tl lua binary below the write out function
local function write_out(tlconfig, result, output_file)
if string.find(output_file,".script.") then
output_file = string.gsub(output_file,".lua","")
end
the binary is in C:\Users{USER}\AppData\Roaming\luarocks\lib\luarocks\rocks-5.4\tl\0.15.3-1\bin
So i'm making this "Feature Request" to start a discussion and at the same time offer a solution for those who can't wait
Feel free to close this
The text was updated successfully, but these errors were encountered:
I was redirected here from this issue teal-language/tl#763
Request
Some custom lua implementations use filetypes other than .lua, like Defold which has it's own .script extension to differenciate a lua module from a lua game script. However both are just lua scripts.
The Teal lsp works wonderfullly on vscode, you just need to associate .script to .lua. However the cyan build command only outputs .lua files. A rename parameter should be added to tlconfig that accepts an input regex and output string. And replace the regex input with a string output to allow for custom file extensions.
(The following was done on the main tl repository)
Now, this is just an idea. In my use case i only needed to add this code to the tl lua binary below the write out function
the binary is in C:\Users{USER}\AppData\Roaming\luarocks\lib\luarocks\rocks-5.4\tl\0.15.3-1\bin
So i'm making this "Feature Request" to start a discussion and at the same time offer a solution for those who can't wait
Feel free to close this
The text was updated successfully, but these errors were encountered: