Post Template Task with Arguments#372
Conversation
|
Hmm, I wonder... have I broken the test suites again 😠 |
jwikman
left a comment
There was a problem hiding this comment.
Don't know why the tests are failing, but I guess you figure out tomorrow morning or so.. 😜
Just had one reflection while looking at this
| export interface TaskRunnerItem { | ||
| description: string; | ||
| command: string; | ||
| arguments?: CommandParameter[]; |
There was a problem hiding this comment.
unknown[] maybe?
|
I think we have quite a challenge here... (not only with your test...) I don't know if we could support arguments of other than simple data types, and (meaningful) commands with only simple data types seems to be a bit rare (at least the built-in commands)... Maybe we need to let the user provide a datatype (from a list of supported ones), and we cast them before sending them to the |
This could get interesting... I guess we would need to define the structure of the supported data types in the syntax.json as well? Otherwise we would cast from an object with unknown properties. |
Exactly... The most obvious one to support is Uri (see https://code.visualstudio.com/api/references/commands for built-in commands)
|
|
What do you say @theschitz, is it time to abandon this? 😂 |

Related to #324.
Changes proposed in this pull request:
Additional comments
Ehm... don't let the commit history fool you. Branched out of the dev branch for #324.