Skip to content

recursive "${workspaceFolder}/**" does not work as advertised inside cpp_propertie.json #14100

@mambo4

Description

@mambo4

Type: Bug

create a c/c++ project in vs code

open c_cpp_properties.json
in your configuration add
"uncludePath":["${workspaceFolder}/**"]

( according to docs, this will recursively include all child directories )

create a ${workspaceFolder}/lib directory
create a ${workspaceFolder}/lib/foo.h file
create ${workspaceFolder}/src/bar.cpp file and inside #inlcude foo.h

notice intellisense does not recognize ${workspaceFolder}/lib/foo.h
and marks it as erroneous.

open c_cpp_properties.json
in your configuration add
"uncludePath":["${workspaceFolder}/lib"]

notice intellisense now sees files in the explicitly included child dir.

Extension version: 1.28.3
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
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
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.90GB (7.24GB free)
Process Argv . --crash-reporter-id 30e841eb-fbc1-4de5-b28a-8a29f0d48f18
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31340697
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
anonusage:31403420
afag3459:31428711
ec5jj548:31422691
terminalsuggestenabled:31431119
cmp-ext-treat:31426748
cp_cls_t_966_ss:31426490
defaultvisibility:31426295
expandedtokens:31427242
copilot6169-t2000-control:31431385
c0683394:31419495
478ah919:31426797
a5gib710:31426879
cp_jb_t_lixleitest:31428973
copilot-nes-oct-trt:31431781

Metadata

Metadata

Assignees

Labels

Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseLanguage Servicemore info neededThe issue report is not actionable in its current statenot reproingWe're not able to reproduce the issue (it's unlikely to get fixed until we find one).

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions