Conversation
|
The new type for "args" isn't just string: it's either an array of strings (as it used to be), or a single string. If it is a single string, then no escaping is performed, and thus one can use shell variable substitution via |
|
@roblourens Any recommendation here on how to set the type to be both |
|
"type" can be an array, here's how it looks in js-debug: "args": {
"default": [],
"description": "%node.launch.args.description%",
"items": {
"type": "string"
},
"type": [
"array",
"string"
]
}, |
package.json
Outdated
| "default": "", | ||
| "description": "Command line arguments passed to the program. (not supported for `internalConsole`)", |
There was a problem hiding this comment.
| "default": "", | |
| "description": "Command line arguments passed to the program. (not supported for `internalConsole`)", | |
| "default": [], | |
| "description": "Command line arguments passed to the program.", |
@int19h We don't need to say that it is not supported in internal console, right? and the default should still be [].
There was a problem hiding this comment.
"args" in general is supported, only the no-array version isn't. I think this is enough of a corner case to not bother mentioning in the docstring.
Related to microsoft/debugpy#1004.