Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99401

Define a task property as one that can change per platform

$
0
0

I am developing a VSCode extension that provide tasks, how can I specify that a property can change per platform, for example on "shell" task we can have this tasks.json:

"tasks": [
{
    "type": "shell",
    "windows": { "command": "wndCmd.exe" },
    "linux": { "command": "lnxCmd" },
    "osx": { "command": "osxCmd" }
}]

but for mine it is not possible.

For the sample on documentation, it is not possible create a task like:

"tasks": [
{
    "type": "rake",
    "task": "some",
    "windows": { "file": "winFile" },
    "linux": { "file": "linuxFile" },
    "osx": { "file": "osxFile" }
}]

Viewing all articles
Browse latest Browse all 99401

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>