microsoft / microsoft/vscode-cpptools

Go to Definition jumps to .h declaration instead of .c definition in 1.33.2 (regression from 1.32.2)

Aperta
#14,686 8 commenti 1 reazione 1 assegnatario Vedi su GitHub

@sean-mcmanus ci sta già lavorando.

Dal 17/8/2026.

Feature: Go to Definition Language Service more info needed regression
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

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

  1. Open a C project on a mapped virtual drive
  2. Open a source file (e.g. FlowWork.c)
  3. Press F12 on a function call (e.g. AppFrontFilter())
  4. Expected: jumps to AppFrontFilter.c:929 (definition)
  5. 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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.