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

Skip VS Code terminal shell arguments for launch.json

In my workspace settings I have { "terminal.integrated.shellArgs.linux": [ "-c", "yarn custom_shell" ], } which launches a custom shell that prompts for user input on startup. When I create a launch.json config that launches using the…
sabrehagen
  • 1,517
  • 1
  • 13
  • 38
0
votes
1 answer

Launching Multiple Simultaneous Tasks in VS Code

I have a single "project" with 3 separate codebases (loaded into a single workspace), each of which has its own long-running npm start task. I want to run all of these at the same time. This isn't too hard if you just go to Terminal -> Run Task 3…
Joe Zim
  • 1,787
  • 1
  • 15
  • 16
0
votes
1 answer

VSCode problemmatcher regex not matching my error output

I am trying to match errors of this format for the VSCode ProblemMatcher... C:\projects\folder\main.cpp(6) : Error[AA000]: identifier "level2" is undefined C:\projects\folder\main.cpp(7) : Error[AA000]: identifier "level3" is undefined With…
buck
  • 11
  • 2
0
votes
1 answer

IoTEdge VisualStudio Code: "useradd" is not recognized as an internal or external command

I am developing IoTEdge module in VisualStudio Code and following This Link. While using the option Build IoT Edge Solution i am getting the error at step 10 useradd is not recognized as an internal or external command OS: Windows10
Bilal
  • 1,034
  • 11
  • 23
0
votes
0 answers

tasks namespace missing from autocomplete

I am currently developing a vscode extension and would like to implement a taskprovider in order to make some global tasks that come with the extension. My problem is that the tasks namespace does not appear in the autocomplete along with…
0
votes
0 answers

VSCode Minify and upload to server automatically

I have a web project with several html and js files. I use the minify plugin and get .min versions for each file. I then upload the .min files to the server, but then I have to rename them on the server, to remove the .min extension... Is it…
Pedro
  • 201
  • 3
  • 8
0
votes
1 answer

Visual Studio Code cannot finde g++ compiler on linux

Does anyone knows why vs-code can't find c++ compiler. I have used vc-code for several months without any problems, but suddenly without any clear reason it can't find the compiler anymore!! does somebody here can figure out what could be causing…
Bobo Feugo
  • 162
  • 1
  • 10
0
votes
1 answer

VS Code Tasks: Open Selection

I'v created a task that will open the file that correponds to the path i have selected: { "type": "shell", "label": "Open Selection", "command": "myFile=`echo ${workspaceFolder}${selectedText} | sed…
Dan Pouliot
  • 375
  • 2
  • 7
  • 21
0
votes
0 answers

Java won't run in VSCode - imports not functioning

Ok, so I followed the guide on vscode website to the T, and I'm stuck where it says the debugger will create the launch.json for me. There is no launch.json. Here's the guide for your ref - https://code.visualstudio.com/docs/java/java-tutorial When…
user3555573
  • 21
  • 2
  • 7
0
votes
1 answer

Use Visual Studio Code Tasks with Gulp 4.0

I am in the process of switching a project from Gulp 3.9.1 (npm install gulp) to Gulp 4.0 (npm install gulp-4.0.build), but when I do this, Visual Studio Code is no longer able to auto-detect the tasks in my gulpfile.js. In both cases, gulp is…
Andy G
  • 13
  • 4
0
votes
1 answer

how to set server path in vs code

How to set local server set path in vs code. Now I am getting like this http://localhost:8080/ but i want http://localhost/myproject/index.html it is look like sometimes http://localhost/myproject/). Now it is opening in Chrome but I want to set…
saranchel n
  • 533
  • 1
  • 8
  • 18
0
votes
0 answers

In Visual Studio Code, how can I configure terminal to show build errors in color?

In Visual Studio Code 1.18.1, I have a build task: { "version": "2.0.0", "tasks": [ { "label": "Build LedaAP", "type": "shell", "command": "c:/WindRiver/workbench-4/wrtool.bat -data…
DavidA
  • 2,053
  • 6
  • 30
  • 54
0
votes
1 answer

Why doesn't this Task open the browser?

Can anyone spot the reason why the following Task doesn't run from Visual Studio Code 1.18 on Ubuntu? I've tried quite a few things and think it's a bug in the way Code closes processes on Ubuntu. The isBackground property does not change the…
Sean
  • 1,279
  • 9
  • 17
0
votes
1 answer

VSCode TypeScript problemMatcher not working

I desire a problem matcher which reports two kinds of problems: typescript compilation problems tslint problems This isn't working in one of my projects, but is working in others. Here is the problem matcher line from the…
ChaseMoskal
  • 7,151
  • 5
  • 37
  • 50
0
votes
1 answer

Automatically jump to error after compilation in Visual Studio Code (custom language)

I have created a custom language plugin for VS Code. Also I created a task with a custom problem matcher: "problemMatcher": { "owner": "customlang", "fileLocation": ["relative", "./"], "severity": "error", …
mfl
  • 1
  • 1