Skip to content
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

Closed
felixfbecker opened this issue Dec 10, 2015 · 2 comments
Closed

Allow multiple build tasks depending on file type #1167

felixfbecker opened this issue Dec 10, 2015 · 2 comments
Labels
tasks Task system issues

Comments

@felixfbecker
Copy link
Contributor

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 have lessc for their styles and babel 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"

@egamma egamma added the feature-request Request for new features or functionality label Dec 10, 2015
@egamma egamma added this to the Backlog milestone Dec 10, 2015
@egamma egamma added the tasks Task system issues label Dec 10, 2015
@felixfbecker
Copy link
Contributor Author

I also have tasks like build-admin, build-main, build-server. It would be nice if Ctrl+Shift+F5 would trigger the right build task based on a glob that is matched on the currently opened file (could set the folder in there).

@dbaeumer
Copy link
Member

Couple of things have improved here with task 2.0.0:

  • you can have dependsOn to trigger n tasks
  • you can bind a key binding to any task

I will close this issue. Please open a new one if the provided features doesn't satisfies your needs.

@dbaeumer dbaeumer removed the feature-request Request for new features or functionality label Nov 10, 2017
@dbaeumer dbaeumer removed this from the Backlog milestone Nov 10, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 25, 2017
connor4312 added a commit to microsoft/vscode-js-debug that referenced this issue Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tasks Task system issues
Projects
None yet
Development

No branches or pull requests

3 participants