Skip to content

VSCode picks up default build tasks in folders of multi-root workspace #189576

@stevenbrix

Description

@stevenbrix

Type: Bug

Have a multi-root workspace. In any of the folders, define a default build task.

Also define a default build task in the workspace file.

Run the default build task shortcut (Ctrl+Shift+B on Windows) and watch the dialog popup on which task to choose

I only want one default build task and that should be the one i specify in my workspace, not some random folder

VS Code version: Code 1.80.2 (2ccd690, 2023-07-27T20:40:28.909Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i9-12900HK (20 x 2918)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 63.68GB (12.69GB free)
Process Argv .\BrowserWin.code-workspace --crash-reporter-id 9cf9fc67-dad0-4985-9417-a44d82e55e1e
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
project-templates can 1.2.0
doxdocgen csc 1.4.0
comment-anchors Exo 1.10.3
copilot Git 1.100.306
vscode-github-actions git 0.25.8
vscode-pull-request-github Git 0.68.1
better-cpp-syntax jef 1.17.2
remote-ssh ms- 0.102.0
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.80.2
cmake-tools ms- 1.14.34
cpptools ms- 1.16.3
cpptools-extension-pack ms- 1.3.0
powershell ms- 2023.6.0
remote-explorer ms- 0.4.1
vsliveshare ms- 1.0.5877
run-on-save puc 1.5.1
cody-ai sou 0.6.4
swift-lang ssw 1.4.0
cmake twx 0.0.17
vscode-lldb vad 1.9.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofb:30804716
pythonnosmt12:30797651
pythonnoceb:30805159
e537b577:30795824
dsvsc013:30795093
dsvsc014:30804076

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions