|
| 1 | +// WARNING: autogenerated by cargo-vsc, may be overwritten if this comment remains! |
| 2 | +{ |
| 3 | + "version": "2.0.0", |
| 4 | + "problemMatcher": "$rustc", |
| 5 | + "tasks": [ |
| 6 | + // entry points |
| 7 | + { |
| 8 | + "label": "default-build", |
| 9 | + "dependsOrder": "sequence", |
| 10 | + "dependsOn": [ "fetch", "check", "test", "build" ], |
| 11 | + "group": { "kind": "build", "isDefault": true } |
| 12 | + }, |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + // fetch |
| 17 | + { |
| 18 | + "label": "fetch", |
| 19 | + "dependsOn": [ |
| 20 | + "cargo fetch", |
| 21 | + ] |
| 22 | + }, |
| 23 | + { |
| 24 | + "label": "cargo fetch", |
| 25 | + "command": "cargo fetch", |
| 26 | + "type": "shell", |
| 27 | + "presentation": { "group": "fetch" }, |
| 28 | + }, |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + // check |
| 33 | + { |
| 34 | + "label": "check", |
| 35 | + "command": "cargo check --frozen --all-targets", |
| 36 | + "type": "shell", |
| 37 | + "presentation": { "group": "check" }, |
| 38 | + "problemMatcher": { "base": "$rustc", "owner": "check", "source": "check" }, |
| 39 | + }, |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + // test |
| 44 | + { |
| 45 | + "label": "test", |
| 46 | + "command": "cargo test --frozen", |
| 47 | + "type": "shell", |
| 48 | + "presentation": { "group": "test" }, |
| 49 | + "problemMatcher": { "base": "$rustc", "owner": "test", "source": "test" }, |
| 50 | + }, |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + // build |
| 55 | + { |
| 56 | + "label": "build", |
| 57 | + "command": "cargo build --frozen --all-targets", |
| 58 | + "type": "shell", |
| 59 | + "presentation": { "group": "build" }, |
| 60 | + "problemMatcher": { "base": "$rustc", "owner": "build", "source": "build" }, |
| 61 | + }, |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + // cargo-vsc |
| 66 | + { |
| 67 | + "label": "cargo build --package cargo-vsc --bin cargo-vsc", |
| 68 | + "command": "cargo build --package cargo-vsc --bin cargo-vsc", |
| 69 | + "type": "shell", |
| 70 | + "problemMatcher": "$rustc", |
| 71 | + "presentation": { "clear": true, "panel": "shared", "reveal": "always" }, |
| 72 | + }, |
| 73 | + { |
| 74 | + "label": "cargo build --package cargo-vsc --bin cargo-vsc --release", |
| 75 | + "command": "cargo build --package cargo-vsc --bin cargo-vsc --release", |
| 76 | + "type": "shell", |
| 77 | + "problemMatcher": "$rustc", |
| 78 | + "presentation": { "clear": true, "panel": "shared", "reveal": "always" }, |
| 79 | + }, |
| 80 | + { |
| 81 | + "label": "cargo doc --package cargo-vsc --bin cargo-vsc", |
| 82 | + "command": "cargo +nightly doc --package cargo-vsc --bin cargo-vsc || cargo doc --package cargo-vsc --bin cargo-vsc", |
| 83 | + "type": "shell", |
| 84 | + "presentation": { "clear": true, "panel": "shared", "reveal": "always" }, |
| 85 | + }, |
| 86 | + { |
| 87 | + "label": "build & open local documentation (cargo-vsc)", |
| 88 | + "windows": { "command": "start \"\" \"${workspaceFolder}\\target\\doc\\cargo_vsc\\index.html\"" }, |
| 89 | + "linux": { "command": "xdg-open \"${workspaceFolder}\\target\\doc\\cargo_vsc\\index.html\"" }, |
| 90 | + "osx": { "command": "open \"${workspaceFolder}\\target\\doc\\cargo_vsc\\index.html\"" }, |
| 91 | + "type": "shell", |
| 92 | + "presentation": { "clear": true, "panel": "shared", "reveal": "silent" }, |
| 93 | + "dependsOn": [ "cargo doc --package cargo-vsc --bin cargo-vsc" ], |
| 94 | + }, |
| 95 | + { |
| 96 | + "label": "open repository (cargo-vsc)", |
| 97 | + "windows": { "command": "start \"\" \"https://github.com/MaulingMonkey/cargo-vsc\"" }, |
| 98 | + "linux": { "command": "xdg-open \"https://github.com/MaulingMonkey/cargo-vsc\"" }, |
| 99 | + "osx": { "command": "open \"https://github.com/MaulingMonkey/cargo-vsc\"" }, |
| 100 | + "type": "shell", |
| 101 | + "presentation": { "clear": true, "panel": "shared", "reveal": "silent" }, |
| 102 | + }, |
| 103 | + { |
| 104 | + "label": "open documentation (cargo-vsc)", |
| 105 | + "windows": { "command": "start \"\" \"https://docs.rs/cargo-vsc\"" }, |
| 106 | + "linux": { "command": "xdg-open \"https://docs.rs/cargo-vsc\"" }, |
| 107 | + "osx": { "command": "open \"https://docs.rs/cargo-vsc\"" }, |
| 108 | + "type": "shell", |
| 109 | + "presentation": { "clear": true, "panel": "shared", "reveal": "silent" }, |
| 110 | + }, |
| 111 | + ] |
| 112 | +} |
0 commit comments