Last active
April 21, 2021 14:50
-
-
Save ches/531af0f873cf28dd14a89c40240b843b to your computer and use it in GitHub Desktop.
A starter VS Code tasks.json file for Bloop, for Scala Metals projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "bloop: compile all", | |
"type": "shell", | |
"command": "bloop compile $(bloop projects)", | |
"group": { "kind": "build", "isDefault": true }, | |
"problemMatcher": [], | |
"presentation": { "clear": false, "panel": "shared", "reveal": "silent" } | |
}, | |
{ | |
"label": "bloop: compile one", | |
"type": "shell", | |
"command": "bloop", | |
"args": ["compile", "${input:projectID}"], | |
"group": "build", | |
"problemMatcher": [], | |
"presentation": { "clear": false, "panel": "shared", "reveal": "always" } | |
}, | |
{ | |
"label": "bloop: console", | |
"type": "shell", | |
"command": "bloop", | |
"args": ["console", "${input:projectID}"], | |
"group": "none", | |
"problemMatcher": [], | |
"presentation": { "clear": true, "focus": true, "panel": "new", "reveal": "always" } | |
}, | |
{ // Should probably use a launch.json configuration | |
"label": "bloop: run one", | |
"type": "shell", | |
"command": "bloop", | |
"args": ["run", "${input:projectID}"], | |
"group": "build", | |
"problemMatcher": [], | |
"presentation": { "panel": "new", "reveal": "always" } | |
}, | |
{ | |
"label": "bloop: test all", | |
"type": "shell", | |
"command": "bloop test $(bloop projects)", | |
"group": { "kind": "test", "isDefault": true }, | |
"problemMatcher": [], | |
"presentation": { "clear": true, "panel": "shared", "reveal": "always" } | |
}, | |
{ | |
"label": "bloop: test one", | |
"type": "shell", | |
"command": "bloop", | |
"args": ["test", "${input:projectID}"], | |
"group": "test", | |
"problemMatcher": [], | |
"presentation": { "clear": true, "panel": "shared", "reveal": "always" } | |
}, | |
{ | |
"label": "bloop: watch all", | |
"type": "shell", | |
"command": "bloop test --watch $(bloop projects)", | |
"isBackground": true, | |
"group": "test", | |
"problemMatcher": [], | |
"presentation": { "focus": false, "panel": "new", "reveal": "always" } | |
}, | |
{ | |
"label": "bloop: watch one", | |
"type": "shell", | |
"command": "bloop", | |
"args": ["test", "--watch", "${input:projectID}"], | |
"isBackground": true, | |
"group": "test", | |
"problemMatcher": [], | |
"presentation": { "focus": false, "panel": "new", "reveal": "always" } | |
}, | |
], | |
"inputs": [ | |
{ | |
"id": "projectID", | |
"description": "Bloop project, e.g. server or server-test", | |
"type": "promptString" // We'll make a fancy command returning a list one day... BSP Task Provider? | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment