Skip to content

Freeze/delayed input when editing c_cpp_properties.json #13591

Closed

Description

@CR82

Environment

  • Windows 10 Enterprise 22H2
  • VS Code Version: 1.99.3
  • C/C++ Extension Version: 1.25.3

Bug Summary and Steps to Reproduce

Bug Summary: When I edit c_cpp_properties.json it freezes, i.e. the next input is often delayed (5 to 15 seconds). This happens after every few keystrokes. Our codebase has around 8000 C/C++ files with 2 million lines of code.

Steps to reproduce:
See summary.

Expected behavior: No input delay when editing c_cpp_properties.json.

Configuration and Logs

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**/Interfaces/**",
                "${workspaceFolder}/**/BxPackaging/**",
                "${workspaceFolder}/**/DeveloperTools/**",
                "${workspaceFolder}/**/RuntimeExtensions/**",
                "${workspaceFolder}/**/Biometrics/**",
                "${workspaceFolder}/**/DataBinding/**",
                "${workspaceFolder}/**/Utility/**"
            ],
            "defines": [
                "WIN32"
            ],
            "windowsSdkVersion": "10.0.22621.0",
            "compilerPath": "cl.exe",
            "cStandard": "c11",
            "cppStandard": "c++11",
            "intelliSenseMode": "windows-msvc-x64",
            "compilerArgs": [
                "/std:c++11"
            ],
            "browse": {
                "path": [
                    "${workspaceFolder}/**/Interfaces/**",
                    "${workspaceFolder}/**/BxPackaging/**",
                    "${workspaceFolder}/**/DeveloperTools/**",
                    "${workspaceFolder}/**/RuntimeExtensions/**",
                    "${workspaceFolder}/**/Biometrics/**",
                    "${workspaceFolder}/**/DataBinding/**",
                    "${workspaceFolder}/**/Utility/**"
                ],
                "limitSymbolsToIncludedHeaders": true
            }
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

No response

Activity

  1. bobbrow commented on May 7, 2025

    @bobbrow
    Contributor

    Hi CR82,

    Thank you for reporting this. It looks like there is potentially a lot of synchronous I/O happening for the path validation when glob paths are used.

  2. added this to the On Deck milestone on May 7, 2025
  3. CR82 commented on May 15, 2025

    @CR82
    Author

    Thanks for the hint Bob Brown (@bobbrow) . I changed my paths to only GLOB at the end, i.e. "${workspaceFolder}/subdir1/subdir2/Interfaces/**", which resolves the issue for me.

  4. bobbrow commented on May 15, 2025

    @bobbrow
    Contributor

    Thanks for the update CR82. That confirms my suspicions. I'm glad you were able to craft a workaround for this until we can fix it.

  5. moved this from Todo to Pull Request in cpptoolson Aug 26, 2025
  6. moved this from Pull Request to Done in cpptoolson Aug 28, 2025
  7. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Sep 2, 2025
  8. locked and limited conversation to collaborators on Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseLanguage ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.help wantedCan be fixed in the public (open source) repo.performance

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions