Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

How to run typescript command in vscode tasks?

Can't run a command in tasks for current file: { "version": "2.0.0", "tasks": [ { "label": "the task", "type": "...
Alexander Bokov's user avatar
0 votes
0 answers
12 views

Run VSCode task inside WSL and windows sequentially

Configured WSL to successfully compile my framework there. I've installed VSCode in Windows with WSL integration extension. With shell task type I successfully can trigger building framework from ...
T4ng10r's user avatar
  • 799
0 votes
1 answer
29 views

Create a shortcut to open multiple files and keep them open in Visual Studio Code

I have a task that I do several times a day everyday that requires editing 20 files (spread out in different places throughout my project), keeping them open since editing each file mostly requires ...
domgunewardena's user avatar
0 votes
0 answers
19 views

VSCode task arguments not passing to custume extension command

I'm trying to create a simple VS Code extension that receives arguments from a task, but the arguments aren't being passed through. Here's my setup: Extension Code (extension.ts): import * as vscode ...
cyrus-d's user avatar
  • 813
0 votes
0 answers
13 views

VSCode tasks that automatically kills all other tasks on invoke

When using vs.code, I have to use a non-standard compiler, and it's easier to just run it from Makefile. I have it set up as a task in tasks.json. I am trying to make my postDebugTask remain in ...
Charles Lohr's user avatar
0 votes
0 answers
39 views

Setting up Multi-API .NET Core Infrastructure with Docker Compose and VSCode Debugging

I'm trying to set up a development environment for a relatively complex infrastructure involving multiple .NET REST APIs, a PostgreSQL database, and a reverse proxy using Docker (Compose and ...
Habib Hadjar's user avatar
0 votes
1 answer
92 views

VS Code Debug Extension: Problem to get the vscode-mock-debug project running

I wanted to follow the steps in Development Setup For Mock Debug. After I run the Extension launcher (F5) there were plently errors being thrown in my face: Error 1: Error 2: Therefore, debugging ...
J.Doe's user avatar
  • 19
0 votes
1 answer
54 views

dependsOn clause conditonal to input variable in Visual Studio Code tasks

I want to define configurable tasks with Visual Studio Code, by defining some input variables. In my particular case I want one task to depend on the value of the ${input:package_manager} variable ...
WaterFox's user avatar
  • 1,046
0 votes
0 answers
33 views

How to combine vscode tasks of sub folders in a multi-root workspace?

I have a setup where multiple projects are depending on outputs of each other, each project is independent (so it owns its own tasks). I want to create a Meta Task, which will build project a and ...
K0IN's user avatar
  • 97
0 votes
0 answers
13 views

How to use configuration in tasks?

I have a task in VSCode: // tasks.json { "label": "build debug", "type": "shell", "command": "/usr/bin/gcc", "args":...
IAbstract's user avatar
  • 19.9k
0 votes
0 answers
14 views

How can I bypass an input prompt for an extension command in VS Code when running the command as part of a task?

I'm trying to automate the process of turning a Dendron note into a pdf. Since there isn't currently native support for exporting to pdf, I'm using pandoc to convert markdown to a pdf. However, before ...
Thomas Dakan's user avatar
1 vote
0 answers
27 views

How to see Google test output from a remote machine in the test explorer instead of the terminal in VSCode

Currently I am able to run Google-Tests in VSCode and see the results in terminal panel. I want to know how, if at all, can I see those results in the test-explorer? In my current setup on Ubuntu-20....
Satya Sidhu's user avatar
1 vote
0 answers
60 views

vscode disassembly view displays nothing but ?? bytes

I am trying to debug my c++ program running on bochs by vscode. However, when I try to open the disassembly view, it displays nothing but ?? bytes. However, I am able to see the disassembly codes by ...
Zailu's user avatar
  • 11
0 votes
1 answer
72 views

how to do something after kill terminal in vscode

When I run a task in vscode, how can I execute specific commands after I click the delete button(kill terminal) for example. when I run task A in vscode, I want to modify a charcater in a file with ...
ASMOCIIX's user avatar
0 votes
0 answers
23 views

VSCode shows a warning in a task definition when I use "linux": "command"

I am running VSCode on an Ubuntu 22.04 host that is up to date with patches. I am creating custom tasks. VSCode shows these warnings for each of the tasks in the PROBLEMS window. Missing property &...
chriskot's user avatar
0 votes
0 answers
50 views

VS Code Extension API - Task Provider - Build Task example (simple)

Background: This is a duplicate (yes) of previous questions (Extension API - Task Provider - Build Task example) - where I cannot seem to get the answers to work - with the sole purpose of garnering ...
Marcus Widerberg's user avatar
0 votes
0 answers
104 views

Parse Error on VS Code tasks.json when trying to execute a Python command

I have a custom pip package installed in the standard 'site-packages' path. I would like to execute one of the Python files within that folder via a Task in VS Code tasks.json. Since I do not want to ...
return0's user avatar
0 votes
1 answer
38 views

Is there a way in VS Code to launch two python files and then automatically display them both side by side?

I'm trying to create a launch.json configuration that will run two python files and then show the two terminals side-by-side. It's easy to do manually but I can't figure out a way to automate it. The ...
Andrew Robb's user avatar
0 votes
1 answer
25 views

Remove popup illustration for R function in VScode

enter image description hereI am annoyed with the popup illustration for R function in VScode. I have tried to add the following words to settings.json. It doesn't work at all. Is there another ...
user6867849's user avatar
0 votes
0 answers
23 views

How to run VS Code extension with arguments

Specifically, I'm trying to run the Reverse Search extension with a predefined set of files to include and exclude. Currently, when I run the extension, I need to input a search term, include files, ...
Ben Jasperson's user avatar
0 votes
0 answers
157 views

Run background task in vscode

I have a bash script that starts elasticsearch (./scripts/dev/start_elasticsearch.sh). if I launch this script in a normal shell and at the end of it I close the shell Elasticsearch will still run in ...
Alberto B's user avatar
  • 501
0 votes
0 answers
16 views

VSCode non-terminating task before debug

For a little project, I'm using VSCode. To test email outputs, I use a script that just logs incoming SMTP messages. Now, I'd like to start this script before launching debug. But using "...
holothuroid's user avatar
0 votes
0 answers
33 views

How do I automatically connect to a docker on remote server when I open VSCode

At the moment for my personal setup: The VSCode window that I never explicitly quit, I use it to first SSH to the remote server. With the docker extension I then go ahead and attach the container to ...
Ashwin Phadke's user avatar
0 votes
0 answers
34 views

how can i compile, run and move to a folder with tasks.json?

i have a problem, i have no internet, so i can't install an extension to do this: -Compile a C++ script -Open the executable -Move it into a folder called Output -All of this in the external terminal ...
user23487215's user avatar
0 votes
0 answers
48 views

vscode debugger wont stop on breakpoints

I'm trying to use the debugger to analyze a C program, but isn't working this is launch { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing ...
krasp's user avatar
  • 3
0 votes
1 answer
208 views

VSCode: How to configure tasks to open browser after server task is ready

I am writing documentation on my project using mkdocs. I would like to automatically run mkdocs serve (compiles the docs and runs local web server) and open browser window(simpleBrowser.show). The ...
Tadeáš Pilař's user avatar
0 votes
1 answer
33 views

vscode task checking for existence of environment variables

I want to create a vscode task that runs when I open a folder with vscode. The task checks for existence of an environment variable. If it exists, then do nothing, but if it does not exist, then the ...
Oscillon's user avatar
  • 237
1 vote
0 answers
88 views

Run VSCode task as another user

I'm running a simple script in a VSCode task like this: .vscode/say_hello.sh: echo Hello World, this is $(whoami)! .vscode/tasks.yaml: { "version": "2.0.0", "tasks&...
MOnsDaR's user avatar
  • 8,648
1 vote
1 answer
154 views

Is there a way to get tasks in VSCode to automatically run when connecting to a new branch and not just when opening the project folder?

I've successfully automated the running of tasks (./.vscode/tasks.json) when I open the project folder. But is there a way to automatically run that script of tasks when connecting to a new branch? I'...
Jono's user avatar
  • 23
0 votes
0 answers
70 views

Automating (activate Python virtualenv) with visual studio task does not work

I have a .env in workspace VSCODE with the following code: echo "The .env file was triggered." source ~/.local/bin/virtualenvwrapper.sh workon app_3.12_virt_env when I execute this file ...
John's user avatar
  • 11
-1 votes
1 answer
50 views

Why does my VSCode produce garbled executable file names when compiling C source code with Chinese characters as filenames using Mingw64?

Why is it that when I compile C language source code with Chinese characters as filenames in my VSCode, the resulting executable file name turns out to be garbled, but there's no issue when using ...
hewei2723's user avatar
0 votes
0 answers
27 views

How can I view/kill vscode "launch" processes?

I guess I keep coming into some weird state where the run crashes but vscode "launch" is still running for some reason, and I don't want to kill the whole program to get rid of that process. ...
Laith AL-Saqqa's user avatar
0 votes
0 answers
25 views

vscode does not run code properly when using zsh as external terminal

I'm using cmake+clangd+codelldb as a toolchain, and I've set up output to an external terminal in launch.json, but it's not popping up the zsh terminal window properly. { "version": &...
蒋旭东's user avatar
-1 votes
1 answer
379 views

How to host/install vscode extension from private repository [duplicate]

I have built a vs code extension for internal purpose with in the organization and would like to distribute to the team members with in our organization. Is it possible to set a repo and configure vs ...
Livin Sunny's user avatar
0 votes
1 answer
64 views

Input not prompted for VSCode custom task

Moving to using VSCode under CentOS 7. With the following tasks.json under ${workspaceFolder}/.vscode: { "version": "2.0.0", "tasks": [ { &...
FrncsJRC's user avatar
0 votes
1 answer
214 views

Attach a debugger to a flask process started by tasks.json in vscode

I have the following tasks.json in my workspace: { "version": "2.0.0", "tasks": [ { "label": "Run Locally", &...
Yuri Waki's user avatar
  • 735
0 votes
0 answers
35 views

vscode uses different cocoapods version when running a task

When I run pod --version from vscode terminal or macos integrated terminal I get version 1.13.0 which is a "correct" version for me, but when I run the same script as a vscode task I get 1....
King Julien's user avatar
  • 11.3k
0 votes
0 answers
27 views

having problem with running multiple files in vs code [duplicate]

i was trying a simple main that calls a test function with a header file. and when running this message pops out main.cpp:(.text+0xe): undefined reference to test(char)' collect2: error: ld returned 1 ...
Antonio Bacio terracino's user avatar
0 votes
0 answers
53 views

Faster tasks.json in VSCode?

My goal is to configure VSCode to open a panel (or other certain tabs) upon startup, specifically when not opening a workspace (i.e. simply click on vscode icon and open the vscode app; basically I ...
SSS's user avatar
  • 51
0 votes
0 answers
28 views

Passing build arguments in test context vscode

What is the way to pass extra argument to the test context in VS Code? It is quite straightforward for task: "args": [ "build", "${...
Marcin's user avatar
  • 65
1 vote
0 answers
107 views

How can I specify the .NET version in VSCode's tasks.json file?

I have both .NET 9 preview and .NET 8 installed. Right now .NET 9 preview version is selected as the default. I've learned that I can use global.json to specify the .NET version in command line, but ...
Nico's user avatar
  • 552
0 votes
0 answers
69 views

Something wrong when using pkg-config to compile program in Visual Studio Code

My tasks.json is like this: { "version": "2.0.0", "tasks": [ { "type": "cppbuild", "label": "C/...
TRknight's user avatar
0 votes
0 answers
70 views

VS Code: Options parameter in tasks.json not able to change env variables?

I have the following tasks.json file with the options declared in the windows section { "version": "2.0.0", "tasks": [ { "label": "Bazel ...
Jersey_Guy's user avatar
0 votes
0 answers
30 views

How to check a directory is opened in VS Code?

I want to make a "simple" project management system. The targeted concept: The app asks for a project name (which same as the directory name) The app creates that directory in a predefined ...
adampweb's user avatar
  • 1,454
0 votes
2 answers
192 views

how to run a pre-configured command when new terminal is created in vs code for only opened folder

Actually the problem I'm having right now is same as Process terminated. Couldn't find a valid ICU package installed on the system in Asp.Net Core 3 - Ubuntu. To solve this, I need to run export ...
livan3li's user avatar
  • 839
0 votes
0 answers
40 views

Execute commands after connection to remote SSH terminal

I am using VSCode Remote - SSH Connect To Host. I've tried to use tasks to execute commands after connect but it spawns a new shell. How can I execute arbitrary shell commands on the remote shell ...
Henrik's user avatar
  • 1,995
0 votes
1 answer
41 views

VS code:tasks.json, the ";" symbol is interpreted as "';'" into the terminal

After installing VS Code Version: 1.85.2 (Universal), the ";" symbol in the line of arguments(args) is interpreted into the terminal as "';'". Consequently, after running c++ file ...
Peko's user avatar
  • 3
0 votes
1 answer
179 views

Is it possible to get the currently selected directory of the vs code explorer as a variable?

The Goal I'm trying to get the currently selected directory path in vscode as a variable from inside my tasks.json like below: { "label": "Echo selected directory from explorer&...
Fy Z1K's user avatar
  • 657
0 votes
0 answers
222 views

With MSVC build tools setup with vscode, how to have the *.obj and .pdb files be generated in separated directory?

Currently they generate under workspace folder. The built binary successfully builds in build folder with my tasks.json but how do I achieve the same for the obj and .pdb files. I tried doing that ...
noobman's user avatar
  • 21
1 vote
0 answers
209 views

Environment Variable setup for plugin "Gradle for Java"

We use "Gradle for Java" plugin in VSCode to list down all the Gradle tasks in our Project. The main gradle file uses multiple environment variables like below, providers.environmentVariable(...
sabaedge's user avatar

1
2 3 4 5
12