You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go to Definition jumps to .h declaration instead of .c definition in 1.33.2 (regression from 1.32.2) #14686
Project type: Embedded C firmware (esirisc architecture)
Workspace on: mapped virtual drive (M:)
Problem
After upgrading to 1.33.2, pressing F12 (Go to Definition) on a function
always jumps to the declaration in the .h header file instead of the
implementation in the .c source file. Downgrading to 1.32.2 restores
correct behavior immediately.
Steps to Reproduce
Open a C project on a mapped virtual drive
Open a source file (e.g. FlowWork.c)
Press F12 on a function call (e.g. AppFrontFilter())
Expected: jumps to AppFrontFilter.c:929 (definition)
Actual: jumps to AppFrontFilter.h:77 (declaration)
Additional Info
The issue occurs even when the target .c file is open in the editor
compile_commands.json is configured and loaded correctly (verified via Log Diagnostics)
The browse database is fully built (verified via C/C++ Output channel)
Downgrading to 1.32.2 fixes the issue without any other changes
hhhwcyjhh I don't repro the bug. There may be some problem parsing the AppFrontFilter.c file. We fixed some issues from 1.33.3 to 1.33.7 which could cause this. Are you able to try 1.33.7 (or the pending 1.33.8) and try to get an isolated/minimum repro or sample code?
Project size: approximately 705 C/C++ source files
Problem:
After upgrading the Microsoft C/C++ extension to version 1.33.8,
IntelliSense indexing and symbol lookup became unreliable.
Observed behavior:
"Go to Definition" frequently returns no result.
Symbol search does not find existing functions or variables.
The browse database reports access or query errors.
The index is not fully populated.
Parsing may stop after processing only a small number of files.
Resetting or rebuilding the browse database does not reliably fix the issue.
The project can still be opened and built successfully in IAR.
The project contains:
IAR compiler configuration
FreeRTOS
lwIP
EtherCAT SSC sources
Generated headers
A large number of include directories
Multiple application and bootloader source trees
Workaround:
I rolled back the Microsoft C/C++ extension from version 1.33.8
to version 1.32.2.
After the rollback, the issue disappeared. The C/C++ output log reported:
cpptools TypeScript version: 1.32.2
cpptools native version: 1.32.2.0
Approximately 705 files processed
browseErrors=0
Symbol lookup and indexing work normally
Expected behavior:
The Microsoft C/C++ extension should reliably parse and index large
IAR-based embedded projects, including projects with generated headers,
custom compiler configurations, and multiple include directories.
Could you please investigate whether the browse database or the parsing
changes introduced in version 1.33.8 caused this regression?
I can provide sanitized logs and configuration files if needed.
For confidentiality reasons, I cannot provide the original source code
or protected project files.
I’m seeing a similar regression after updating to 1.33.8, but in my case it seems specifically related to recursive include paths using /**.
For example, with an include path like:
"includePath": [
"../**"
]
F12 / Go to Definition does not resolve headers or function declarations correctly.
However, if I replace the recursive path with a direct path to the actual include directory, for example:
"includePath": [
"../SomeModule/Include"
]
navigation works correctly, even with the new version.
Downgrading to 1.32.2 also restores the expected behavior with ../**.
So this looks like a regression in handling recursive /** include paths rather than a general Go to Definition issue.
I’m seeing a similar regression after updating to 1.33.8, but in my case it seems specifically related to recursive include paths using /**. For example, with an include path like:
"includePath": [
"../**"
]
F12 / Go to Definition does not resolve headers or function declarations correctly. However, if I replace the recursive path with a direct path to the actual include directory, for example:
"includePath": [
"../SomeModule/Include"
]
navigation works correctly, even with the new version. Downgrading to 1.32.2 also restores the expected behavior with ../**. So this looks like a regression in handling recursive /** include paths rather than a general Go to Definition issue.
I believe my #14712 may be a duplicate of this issue. Over there I have described some specific behavior observed for workspace parsing and some background processes. Other people in this thread with this problem should check to see if they see the same behavior, or something else.
With 1.35.6 CTRL+click on the #include <path_header> no more work. The keyboard combination does nothing an no error appears
Right click and go to definition or declaration triggers error "no definition found".
The last working release is 1.32.2
The erroneous behavior in the C/C++ extension, i.e. jumping to .h file instead of .c file, is still there in the latest version 1.35.6
Our entire organization had to downgrade the extension to 1.32.2
It's on several Linux flavors - native RedHat8, native RedHat9 and WSL Rocky8.
Also on Windows.
We do not currently have a repro case for this, with 1.35.6. The simple case described is not easily repro-able. If anyone is still experiencing this issue, please provide detailed repro steps, logs, etc.. There is likely some detail we're missing, such as content of a file involved failing to be successfully parsed, etc..
Yes, the issue seems to be addressed indeed. For small codebases.
For large codebases like ours (80,000+ source files) is not, unfortunately.
Version 1.32.2 does work on our codebase. Version 1.36.5 does not.
Repro steps are exactly as described in the issue - try to press F12 or CTRL-click on a function or class - it brings you to the declaration in .h file instead of implementation in .c/.cpp file.
If the programmer opens that .c/.cpp file manually once, the Intellisense "remembers" it and next time it will work correctly for any variable/class/function that is implemented in this .c/.cpp file.
Which means that for the mechanism to work correctly, the programmer has to manually open tens of thousands of source files - practically unusable.
Our system:
Linux RHEL 8.10, the codebase is on NFS, the database is on the local disk.
VSCode version is 1.146.0
The intervening permission-denied database error was fixed before the comparison.
Here's the summary of what was done:
On a large C++ workspace stored on NFS, C/C++ 1.35.6 completed workspace parsing but omitted unopened source files from its browse database. Go to Definition reached a declaration but not its implementation. Opening the implementation manually made navigation work.With the browse path temporarily restricted to the affected library, 1.35.6 indexed the unopened source. With the full workspace restored, the source disappeared from the index again.
With 1.32.2, the full-workspace scan indexed the source before it was opened, and navigation worked. This suggests a workspace-discovery regression, but we have not identified the exact cause or first affected release.
Activity
sean-mcmanus commentedon Aug 17, 2026
hhhwcyjhh Why are you using 1.33.2 instead of 1.33.7? Do you still repro it with 1.33.7 too?
sean-mcmanus commentedon Aug 17, 2026
hhhwcyjhh I don't repro the bug. There may be some problem parsing the AppFrontFilter.c file. We fixed some issues from 1.33.3 to 1.33.7 which could cause this. Are you able to try 1.33.7 (or the pending 1.33.8) and try to get an isolated/minimum repro or sample code?
11cookies11 commentedon Aug 18, 2026
I encountered a similar issue after updating the Microsoft C/C++ extension
to version 1.33.8.
After the update, IntelliSense indexing and symbol lookup stopped working
in my IAR-based embedded project.
Environment:
Problem:
After upgrading the Microsoft C/C++ extension to version 1.33.8,
IntelliSense indexing and symbol lookup became unreliable.
Observed behavior:
The project contains:
Workaround:
I rolled back the Microsoft C/C++ extension from version 1.33.8
to version 1.32.2.
After the rollback, the issue disappeared. The C/C++ output log reported:
Expected behavior:
The Microsoft C/C++ extension should reliably parse and index large
IAR-based embedded projects, including projects with generated headers,
custom compiler configurations, and multiple include directories.
Could you please investigate whether the browse database or the parsing
changes introduced in version 1.33.8 caused this regression?
I can provide sanitized logs and configuration files if needed.
For confidentiality reasons, I cannot provide the original source code
or protected project files.
hhhwcyjhh commentedon Aug 18, 2026
I have the same problem when using version 1.33.8.
shuky-shukrun commentedon Aug 24, 2026
I’m seeing a similar regression after updating to 1.33.8, but in my case it seems specifically related to recursive include paths using
/**.For example, with an include path like:
F12 / Go to Definition does not resolve headers or function declarations correctly.
However, if I replace the recursive path with a direct path to the actual include directory, for example:
navigation works correctly, even with the new version.
Downgrading to 1.32.2 also restores the expected behavior with
../**.So this looks like a regression in handling recursive
/**include paths rather than a general Go to Definition issue.NicoCaldo commentedon Aug 26, 2026
I have the same issue
mbrittsess commentedon Sep 1, 2026
I believe my #14712 may be a duplicate of this issue. Over there I have described some specific behavior observed for workspace parsing and some background processes. Other people in this thread with this problem should check to see if they see the same behavior, or something else.
shuky-shukrun commentedon Sep 3, 2026
Issue is fixed for me in pre-released v1.34.1 (haven't try v1.34.0). I switched to pre-release channel until next formal release.
github-actions commentedon Oct 3, 2026
Hey Sean McManus (@sean-mcmanus), this issue might need further attention.
hhhwcyjhh, you can help us out by closing this issue if the problem no longer exists, or adding more information.
NicoCaldo commentedon Oct 18, 2026
1.34.4 has the same issue;
Rolling back to 1.32.2 fixed it
NicoCaldo commentedon Nov 12, 2026
With 1.35.6 CTRL+click on the
#include <path_header>no more work. The keyboard combination does nothing an no error appearsRight click and go to definition or declaration triggers error "no definition found".
The last working release is 1.32.2
yragoza commentedon Nov 19, 2026
The erroneous behavior in the C/C++ extension, i.e. jumping to .h file instead of .c file, is still there in the latest version 1.35.6
Our entire organization had to downgrade the extension to 1.32.2
It's on several Linux flavors - native RedHat8, native RedHat9 and WSL Rocky8.
Also on Windows.
Colengms commentedon Nov 19, 2026
We do not currently have a repro case for this, with 1.35.6. The simple case described is not easily repro-able. If anyone is still experiencing this issue, please provide detailed repro steps, logs, etc.. There is likely some detail we're missing, such as content of a file involved failing to be successfully parsed, etc..
Yevgeny Ragoza (@yragoza) , the issue you're referring to is #14868 , and has been addressed.
yragoza commentedon Nov 20, 2026