Is it possible to get a task to show it's underlying function definition for intellisense in dev tools? For example the decorated function (with @task) is always just considered an Any type, so it doesn't show what variables it's expecting. (see screenshots)
I'm hoping there is a way to show what variables it expects, so that when I build the task in one script and use it in a parent or child script I can see what inputs it expects. The way a normal function works (see last screenshot).
01/21/2022, 7:36 PM
I am still looking into this and haven’t found anything definitive. I can’t tell if it’s something the language server takes care of or we need to do something
01/21/2022, 7:37 PM
The type hints are typically what's getting passed, which the language server is taking care of that. I think the task though (especially when using the decorator) doesn't appear to return a type that it understands.
Maybe something as simple as allowing the parameters and types in a keyword for the decorator as a dict?
01/21/2022, 7:47 PM
I see what you mean on the type hints getting passed. Will try some stuff
Like I’m not gonna get this immediately. I suggest opening a Github issue for it?