Skip to content

Conversation

timiimit
Copy link

I am using CMake Tools extension which allows to set cmake.buildDirectory config variable.
I wanted to specify location of compile_commands.json through settings like so:

"clangd.arguments": [
	"--compile-commands-dir=${config:cmake.buildDirectory}"
],

but I noticed that variables get resolved only once. cmake.buildDirectory can in turn contain another variable such as ${workplaceFolder} in my case. For this, a recursive resolution would be needed.

I'm not sure whether a recursion limit would be desired or if PR breaks in any weird cases.

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

Successfully merging this pull request may close these issues.

1 participant