Go to Definition jumps to .h declaration instead of .c definition in 1.33.2 (regression from 1.32.2)
@sean-mcmanus is already working on this.
Since Aug 17, 2026.
Assessment
This issue has not been assessed yet.
Description
Environment
- OS: Windows 10 Pro for Workstations
- VS Code version: (your version)
- C/C++ extension version: 1.33.2 (broken), 1.32.2 (works)
- 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
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-cpptools
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/vscode-cpptools#14787 ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries Openbug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 assignee ·
-
Language Service more info needed
microsoft/vscode-cpptools#14778 · 1 comment · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
microsoft/vscode-cpptools#14769 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/vscode-cpptools#14768 · 1 comment ·
All issues in microsoft/vscode-cpptools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·