microsoft / microsoft/vscode-cpptools
Go to Definition slow
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Environment
- OS and Version: Windows 11 x64
- VS Code Version: 1.104.2 (also tried a few olders)
- C/C++ Extension Version: 1.27.7
- If using SSH remote, specify OS of remote machine: WSL2 (Ubuntu 24.04.2 LTS) + Devcontainer
Bug Summary and Steps to Reproduce
Bug Summary:
v1.27.7 Go to Definition takes ~2-3 seconds, while v1.26.5 works instantly.
Steps to reproduce:
- Use Go to Definition on a moderate sized C CMake project (~400 h+c files, ~88k SLOC)
- Fire Intellisense (Ctrl + Space) - slower compared to v1.26.5 by 1-2 seconds
Expected behavior:
Configuration and Logs
_settings.json_:
"C_Cpp.intelliSenseEngine": "default",
"C_Cpp.files.exclude": {
"**/.vscode": true,
"**/.vs": true,
"build/**": true
},
"files.watcherExclude": {
"build/**": true
},
_c_cpp_properties.json_
{
"configurations": [
{
"name": "ESP-IDF",
"compilerPath": "${config:idf.toolsPathWin}\\tools\\xtensa-esp32s3-elf\\esp-2021r2-patch3-8.4.0\\xtensa-esp32s3-elf\\bin\\xtensa-esp32s3-elf-gcc.exe",
"compileCommands": [
"${workspaceFolder}/build/compile_commands.json"
],
"includePath": [
"${config:idf.espIdfPath}/components/**",
"${config:idf.espIdfPathWin}/components/**",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}/**"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": false
}
}
],
"version": 4
}
Other Extensions
Disabling / enabling other extensions does not seem to have any effect
Additional context
No response
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.
Research direction
Reproduce the regression in a moderate C/CMake project using the provided compile_commands.json configuration, then compare Go to Definition and Ctrl+Space between C/C++ extension versions 1.26.5 and 1.27.7. Profile the relevant extension behavior and validate that both actions return to the earlier responsiveness without breaking the supplied Windows, WSL2, or devcontainer setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, typescript, vscode
- Domain
- performance, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100