Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
v-ericawu opened this issue Feb 6, 2025 · 0 comments

Comments

@v-ericawu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant