Skip to content

Add variable names to tl types command #1109

@Kanashimo

Description

@Kanashimo

Hello, I have been using Teal for the past few days now. I've thought about adding one small feature that would improve DX, vscode-teal uses tl types command for getting the content of hover tooltip.

Image

I think it would be much better if instead of displaying

function(string)

it would be something like this:

local function hello(name: string)

For now, it's hard to read, especially for functions with many parameters.

I'm not sure how tl types works but when I do tl types hello.tl | grep function(string) I get

"str":"function(string)",

so this property needs to be changed or another one could be added, so later on me or someone else could add that in vscode-teal.

Basically, this feature could be implemented in the extension, but this solution makes it reusable by other tools as well.

That's all, I would like to add that Teal is an awesome project and I hope it will become only better and better through time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions