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
For now, teal compiler just drops any comments data from type info. I hope these comments can also be preserved.
I have 2 use cases:
I want to show comments as documents in vscode plugin hover.
I want to add a teal formatter plugin. I feel the easiest way to achieve it is to mimic something like tl gen but produce formatted .tl instead of .lua. But as a formatter, all comments need to be preserved unlike the generated lua scripts.
The text was updated successfully, but these errors were encountered:
I personally include comments for diagnostics that some LSP for lua uses e.g.
---@paramsqlstring The SQL query to execute.---@paramparameterstable Optional table containing the parameters to bind to the query.functionDatabase:execute(sql, parameters) end
Would be very useful to keep the comments when generating
For now, teal compiler just drops any comments data from type info. I hope these comments can also be preserved.
I have 2 use cases:
tl gen
but produce formatted.tl
instead of.lua
. But as a formatter, all comments need to be preserved unlike the generated lua scripts.The text was updated successfully, but these errors were encountered: