Support VSCode cmake-tools plugin

Hi folks,

As we handled this feature request on Commercial Support, I was due to update this post to let the Community knows about the outcome, but I forgot back in May, so here I do now!

We discussed the use case internally and tracked it in our insights tool. It is a corner case for now, but interesting nonetheless. Indeed the most realistic solution appears to be able to evaluate the ${command:cmake.buildDirectory} in the path provided into sonarlint.pathToCompileCommands. Whatever CMake extension is used will populate this variable and SonarLint will read it. This is only limited to extensions that take care of ${command:cmake.buildDirectory} of course but it’s already an improvement.

This is not a priority for now but we have it recorded to track further similar requests.

Cheers
Antoine

2 Likes