Skip to content

Go to Definition slow #13970

@tshcherban-wb

Description

@tshcherban-wb

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:

  1. Use Go to Definition on a moderate sized C CMake project (~400 h+c files, ~88k SLOC)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions