Skip to content

The “Code Analysis Mode” remains “Automatic“ after unchecking the “C_Cpp.codeAnalysis.clangTidy.enabled” option #13240

Closed

Description

@v-ericawu

Environment

  • OS and Version: Windows/Linux/Mac
  • VS Code Version: 1.96.4
  • C/C++ Extension Version: 1.23.4(pre-release)
  • If using SSH remote, specify OS of remote machine: NA

Bug Summary and Steps to Reproduce

Bug Summary: The “Code Analysis Mode” remains “Automatic“ after unchecking the “C_Cpp.codeAnalysis.clangTidy.enabled” option

Steps to reproduce:

  1. Open a .cpp file, then observe 'Code Analysis Mode’ in Language Status Bar UI.
  2. Checking 'C_Cpp.codeAnalysis.clangTidy.enabled' option in Settings UI, then return to .cpp file and observe 'Code Analysis Mode’.
  3. Unchecking ‘C_Cpp.codeAnalysis.clangTidy.enabled’ option in Settings UI, then return to .cpp file and observe 'Code Analysis Mode’.

Expected behavior: ‘Code Analysis Mode‘ become Manual directly after unchecking the ‘C_Cpp.codeAnalysis.clangTidy.enabled’ option without reopening the project

Actual behavior:

  • After checking 'C_Cpp.codeAnalysis.clangTidy.enabled' option, 'Code Analysis Mode' changes from Manual -> Automatic
    Note: The 'C_Cpp.codeAnalysis.clangTidy.enabled' option is unchecked by default, so when first time open the project, the 'Code Analysis Mode' displays Manual by default

  • After unchecking the ‘C_Cpp.codeAnalysis.clangTidy.enabled’ option, the ‘Code Analysis Mode’ still displays “Automatic” and doesn’t change from Automatic -> Manual
    Note: The 'Code Analysis Mode’ option will change from Automatic -> Manual only after reopening the project
    Image

Configuration and Logs

/

Other Extensions

No response

Additional context

No response

Activity

  1. moved this to Pull Request in cpptoolson Feb 21, 2025
  2. added this to the On Deck milestone on Feb 21, 2025
  3. moved this from Pull Request to Done in cpptoolson Feb 21, 2025
  4. added
    fixedCheck the Milestone for the release in which the fix is or will be available.
    on Mar 6, 2025
  5. v-ericawu commented on Mar 12, 2025

    @v-ericawu
    Author

    Verified on C/C++ extension 1.24.2(pre-release), this issue has been fixed:
    Image

  6. locked and limited conversation to collaborators on Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions