Skip to content

Add recursive substitution of config variables#659

Open
timiimit wants to merge 1 commit into
clangd:masterfrom
timiimit:recursive-config-substitution
Open

Add recursive substitution of config variables#659
timiimit wants to merge 1 commit into
clangd:masterfrom
timiimit:recursive-config-substitution

Conversation

@timiimit
Copy link
Copy Markdown

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