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
As we can see "get_pid" needs "get_container_id" and both of them are reference later in the configuration.
In the code above it won't work as the first ${input:get_container_id} will be evaluated to empty string.
One workaround to make it working is to "dummy" references the ${input:get_container_id} in the configuration before referencing ${input:get_pid}
(Then even if you delete that dummy reference it will keep working until you restart VSCode)
Another nicer workaround would be to use variables and invoke the input command first:
"variables": {
"containerId": "${input:get_container_id}",
"pid": "${input:get_pid}", //Important: the precedence is important otherwise they won't evaluate (this command depending on the previous one)
},
So could you please fully support this
"
The text was updated successfully, but these errors were encountered:
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
The documentation (https://code.visualstudio.com/docs/editor/variables-reference#_why-arent-variables-in-tasksjson-being-resolved)
states that "Input variables in the inputs section will not be resolved as nesting of input variables is not supported.
First of all that's not true (it's supported with limitations)
Second it is quite powerful to fully support it!
Lets take this example:
As we can see "get_pid" needs "get_container_id" and both of them are reference later in the configuration.
In the code above it won't work as the first ${input:get_container_id} will be evaluated to empty string.
One workaround to make it working is to "dummy" references the ${input:get_container_id} in the configuration before referencing ${input:get_pid}
(Then even if you delete that dummy reference it will keep working until you restart VSCode)
Another nicer workaround would be to use variables and invoke the input command first:
So could you please fully support this
"
The text was updated successfully, but these errors were encountered: