Open Semitalis opened 3 years ago
It won't be for a while, but I want to rethink when and how clang-tidy triggers. I agree this is annoying.
It would definitely be good to have an option to disable all automatic triggers and only lint any file when asked for.
PR #67 adds support for this. @notskm, I agree with you that the overall approach needs a re-think, but this would be a helpful stop-gap.
Currently, the extension will always trigger a clang-tidy execution when opening a file.
I would like to have the option, to never run clang-tidy unless I explicitly tell it to, thus the following setting would be nice to have:
"clang-tidy.lintOnOpen": false,
Note: I tried to use the following, but that resulted in an error when trying to manually run the lint via command: