Skip to content

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

@v-ericawu

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

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions