Skip to content

C/C++ Intellisense slow and unresponsive (v1.19.9) #12126

Description

@AlexDai54202

Environment

  • OS and Version: Windows 11 Home, version 23H2
  • VS Code Version:
Version: 1.87.2 (user setup)
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:20:17.278Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631
  • C/C++ Extension Version: v1.19.9
  • If using SSH remote, specify OS of remote machine: Linux d893f64b1111 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 GNU/Linux

Bug Summary and Steps to Reproduce

Bug Summary:
Intellisense takes multiple seconds to autofill or hint.

Untitled.video.-.Made.with.Clipchamp.10.mp4

Steps to reproduce

  1. Open .c file in VScode.
  2. Attempt to reference a variable
  3. Variable takes multiple seconds to autocomplete/hint

Expected behavior:

  1. Open .c file in VScode
  2. Attempt to reference a variable
  3. Variable hinted during typing with minimal delay

Configuration and Logs

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}

Other Extensions

image

Additional context

Apologies in advance if this issue is written to be extremely informal; I'm an undergraduate student trying their best to complete their programming assignment. I can't seem to find a fix to this issue anywhere and this is genuinely driving me insane.

I don't think the issue is that there are too many active variables either; making a new .c file and writing something like int aintegervariable = 0; takes multiple seconds for intellisense to recognize and autofill and demonstrates the same issue.

demo.mp4

Additional context:
This issue has persisted for almost the entire time I've used C/C++, so I would likely have the same issue even with the last couple dozen versions of this extension.
My device has 16 GB of RAM, and the CPU utilization is <40% half the time, and my SSD has around 500 GB of unused storage space, so I don't think the issue is in the hardware.

Once again, apologies for wasting your time if the issue isn't well written or through enough to debug.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions