Questions tagged [vscode-tasks]

Visual Studio Code Tasks can be used to run scripts or begin processes in order to leverage other tools to perform tasks from within Visual Studio Code.

Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems. Examples include the TypeScript Compiler, linters like ESLint and TSLint as well as build systems like Make, Ant, Gulp, Jake, Rake, and MSBuild.

These tools are mostly run from the command line and automate jobs inside and outside the inner software development loop (edit, compile, test, and debug). Given their importance in the development life cycle, it is helpful to be able to run tools and analyze their results from within VS Code. Tasks in VS Code can be configured to run scripts and start processes so that many of these existing tools can be used from within VS Code without having to enter a command line or write new code. Workspace or folder specific tasks are configured from the tasks.json file in the .vscode folder for a workspace.

Extensions can also contribute tasks using a Task Provider, and these contributed tasks can add workspace-specific configurations defined in the tasks.json file.

Website:

https://code.visualstudio.com/docs/editor/tasks

566 questions
0
votes
1 answer

Tasks in VScode

Is it possible to run a task from a task in VSCode? Example json: { // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "taskName": "Show In…
KeniSteward
  • 179
  • 9
0
votes
1 answer

Vscode task & emscripten

I've created a custom task that compile my "C" files with emscripten, but the output files are saved at the root of my workspace. I would like to change this, so the compiled files are saved in the same directory as my input js file My task.json…
0
votes
1 answer

How to configure gulp build with tasks.json version 2?

Right now we are using the tasks.json 0.1.0 version of tasks in Visual Studio Code. Navigating to https://code.visualstudio.com/docs/editor/tasks indicates that VS code will automatically detect all of my tasks in my gulp file. I've installed…
cr1pto
  • 539
  • 3
  • 13
0
votes
1 answer

`au run --watch` task with source maps in debugger

In How to implement `au run --watch` task + debugging Ashley Grant outlines nicely a method (along with other contributors) to launch a browser while debugging in VS Code, but as evident in comments, it appears source mapping doesn't work. Indeed, I…
Veksi
  • 3,556
  • 3
  • 30
  • 69
0
votes
1 answer

VSCode TreeItem select

I have a new TreeItem,on explorer view. How can I change items status when I click it. And I want to choose multiple items,when I press shift and click item at the same time.
0
votes
1 answer

Can the Tasks API 2.0 allow execution of entries in launch.json

As part of the Cake integration with VSCode, this is how we recommend people configure the ability to debug a *.cake file. With the new Task API, is it possible to automatically add a Task into the VSCode instance to allow launching of the debugger?…
Gary Ewan Park
  • 17,610
  • 5
  • 42
  • 60
0
votes
0 answers

how to run an asp.net solution in vscode?

I've created an Asp.Net project on visual studio (windows) and I want to make some changes and run the solution on VScode for Mac... can I do that? I have installed .net and stuff. I have tried typing my app path on launch.json file: "program":…
Eduardo G.
  • 11
  • 2
0
votes
1 answer

Visual Studio Code creates multiple instances on Windows 7

I am using Visual Studio Code version 1.1.1 on 64-bit Windows 7 OS. Whenever I start VS Code, it creates multiple instances. Is this happening for everyone? Any problem with my setup? Note: I am only using Angular 2 with TypeScript in VS Code.
Sanket
  • 19,295
  • 10
  • 71
  • 82
-1
votes
0 answers

in vs code task , how node file take user input as parameter?

I want to create vs code task which create folder of given name and , below is the definition of task, it is working fine here is my task { "version": "2.0.0", "tasks": [ { "label": "node file", "detail": "Create file from…
xkeshav
  • 53,360
  • 44
  • 177
  • 245
-1
votes
0 answers

Try to get forwarded port in tasks

I'm trying to get an auto-generated forwarded port via commands but this command only copies the host and port name. How can I pass that data directly to the argument? Also, is there any option to preselect the forwarded port option by label because…
-1
votes
0 answers

Unable to change settings in VScode

whenever I am trying to update settings that is want to change the setting to always run programme in terminal but it shows Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again. enter…
-1
votes
0 answers

Visual Studio Code (VSCode) - Clarify how tasks (tasks.json, "problemMatcher") work?

CONTEXT I'm trying to use Visual Studio Code's (VSCode) tasks (tasks.json) and better understand how the problemMatcher settings work or if they work at all. For this purpose, I've created the following setup in Visual Studio Code (VSCode) to…
Eduardo Lucio
  • 1,771
  • 2
  • 25
  • 43
-1
votes
1 answer

vscode run unit tests

I have an existing project set up so that npm run test runs all unit tests or npm run test [...files] will run specific files only. I would like to set up vscode to work with this, but I am completely lost. There is launch.json and tasks.json and…
SystemParadox
  • 8,203
  • 5
  • 49
  • 57
-1
votes
1 answer

problemMatcher not matching

I'm trying to write a simple problem matcher for the output of ts-node-dev, but for some reason VSCode never detects problems in the output. Here's the terminal output I would like to match; it contains an error message and a stack trace. I've…
Nate Glenn
  • 6,455
  • 8
  • 52
  • 95
-1
votes
1 answer

VSCode: execute command when focus on terminal view?

I've set "ctrl + end" to execute this multicommand sequence, When I focus on the terminal view, executing the command will output some characters in the terminal,not execute the actual command, how can I execute the command even in I'm focus on…
1 2 3
37
38