-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple build tasks depending on file type #1167
Labels
tasks
Task system issues
Comments
I also have tasks like |
Couple of things have improved here with task 2.0.0:
I will close this issue. Please open a new one if the provided features doesn't satisfies your needs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm working with a lot of projects that have different build tasks for different file types, for example I
javac
for Java,pdflatex
for Latex, others may havelessc
for their styles andbabel
for their JS.Currently, you can only define one build task to be run when Ctrl+Shift+B is pressed. tasks.json allows us to nicely define tasks to run with the currently opened file, but (eg compile the currently open java / Latex / Less / ES6 file), but you can only assign one of these tasks the shortcut that comes with
isBuildCommand
.It would be nice if instead of just
"isBuildCommand": true
we could also define"isBuildCommand": "java"
and for another task"isBuildCommand": "latex"
so VS Code automatically runs the desired task when pressing Ctrl+Shift+B depending on what type of file is currently open.This should also work with
"isTestCommand"
The text was updated successfully, but these errors were encountered: