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

Đang mở
#14,686 8 bình luận 1 reaction 1 người được giao Xem trên GitHub

@sean-mcmanus đang làm issue này rồi.

Từ ngày 17/8/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Feature: Go to Definition Language Service more info needed regression

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
Ngôn ngữ chính
TypeScript
Star
6.2k
Fork
1.7k
Merge trung bình
14 giờ 46 phút
Pull request đã merge (30 ngày)
61

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.